Package io.moov.sdk.models.components
Class RevokeTokenRequest
- java.lang.Object
-
- io.moov.sdk.models.components.RevokeTokenRequest
-
public class RevokeTokenRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRevokeTokenRequest.Builder
-
Constructor Summary
Constructors Constructor Description RevokeTokenRequest(java.lang.String token)RevokeTokenRequest(java.lang.String token, java.util.Optional<? extends TokenTypeHint> tokenTypeHint, java.util.Optional<java.lang.String> clientId, java.util.Optional<java.lang.String> clientSecret)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RevokeTokenRequest.Builderbuilder()java.util.Optional<java.lang.String>clientId()Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.java.util.Optional<java.lang.String>clientSecret()Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.booleanequals(java.lang.Object o)inthashCode()java.lang.Stringtoken()The access or refresh token to revoke.java.util.Optional<TokenTypeHint>tokenTypeHint()The type of token being revoked.java.lang.StringtoString()RevokeTokenRequestwithClientId(java.lang.String clientId)Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.RevokeTokenRequestwithClientId(java.util.Optional<java.lang.String> clientId)Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.RevokeTokenRequestwithClientSecret(java.lang.String clientSecret)Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.RevokeTokenRequestwithClientSecret(java.util.Optional<java.lang.String> clientSecret)Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.RevokeTokenRequestwithToken(java.lang.String token)The access or refresh token to revoke.RevokeTokenRequestwithTokenTypeHint(TokenTypeHint tokenTypeHint)The type of token being revoked.RevokeTokenRequestwithTokenTypeHint(java.util.Optional<? extends TokenTypeHint> tokenTypeHint)The type of token being revoked.
-
-
-
Constructor Detail
-
RevokeTokenRequest
public RevokeTokenRequest(java.lang.String token, java.util.Optional<? extends TokenTypeHint> tokenTypeHint, java.util.Optional<java.lang.String> clientId, java.util.Optional<java.lang.String> clientSecret)
-
RevokeTokenRequest
public RevokeTokenRequest(java.lang.String token)
-
-
Method Detail
-
token
public java.lang.String token()
The access or refresh token to revoke.
-
tokenTypeHint
public java.util.Optional<TokenTypeHint> tokenTypeHint()
The type of token being revoked.
-
clientId
public java.util.Optional<java.lang.String> clientId()
Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
-
clientSecret
public java.util.Optional<java.lang.String> clientSecret()
Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
-
builder
public static final RevokeTokenRequest.Builder builder()
-
withToken
public RevokeTokenRequest withToken(java.lang.String token)
The access or refresh token to revoke.
-
withTokenTypeHint
public RevokeTokenRequest withTokenTypeHint(TokenTypeHint tokenTypeHint)
The type of token being revoked.
-
withTokenTypeHint
public RevokeTokenRequest withTokenTypeHint(java.util.Optional<? extends TokenTypeHint> tokenTypeHint)
The type of token being revoked.
-
withClientId
public RevokeTokenRequest withClientId(java.lang.String clientId)
Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
-
withClientId
public RevokeTokenRequest withClientId(java.util.Optional<java.lang.String> clientId)
Client ID can be provided here in the body, or as the Username in HTTP Basic Auth.
-
withClientSecret
public RevokeTokenRequest withClientSecret(java.lang.String clientSecret)
Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
-
withClientSecret
public RevokeTokenRequest withClientSecret(java.util.Optional<java.lang.String> clientSecret)
Client secret can be provided here in the body, or as the Password in HTTP Basic Auth.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-