Package io.moov.sdk.models.components
Class AuthToken
- java.lang.Object
-
- io.moov.sdk.models.components.AuthToken
-
public class AuthToken extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthToken.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaccessToken()A value passed to the authorization server to gain access to the system.static AuthToken.Builderbuilder()booleanequals(java.lang.Object o)intexpiresIn()Unix timestamp indicating when this token expires.inthashCode()java.lang.StringrefreshToken()A value passed to the authorization server to obtain a new access token.java.lang.Stringscope()A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.TokenTypetokenType()An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.java.lang.StringtoString()AuthTokenwithAccessToken(java.lang.String accessToken)A value passed to the authorization server to gain access to the system.AuthTokenwithExpiresIn(int expiresIn)Unix timestamp indicating when this token expires.AuthTokenwithRefreshToken(java.lang.String refreshToken)A value passed to the authorization server to obtain a new access token.AuthTokenwithScope(java.lang.String scope)A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.AuthTokenwithTokenType(TokenType tokenType)An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
-
-
-
Constructor Detail
-
AuthToken
public AuthToken(TokenType tokenType, java.lang.String accessToken, java.lang.String refreshToken, int expiresIn, java.lang.String scope)
-
-
Method Detail
-
tokenType
public TokenType tokenType()
An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
-
accessToken
public java.lang.String accessToken()
A value passed to the authorization server to gain access to the system.
-
refreshToken
public java.lang.String refreshToken()
A value passed to the authorization server to obtain a new access token.
-
expiresIn
public int expiresIn()
Unix timestamp indicating when this token expires.
-
scope
public java.lang.String scope()
A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.
-
builder
public static AuthToken.Builder builder()
-
withTokenType
public AuthToken withTokenType(TokenType tokenType)
An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
-
withAccessToken
public AuthToken withAccessToken(java.lang.String accessToken)
A value passed to the authorization server to gain access to the system.
-
withRefreshToken
public AuthToken withRefreshToken(java.lang.String refreshToken)
A value passed to the authorization server to obtain a new access token.
-
withExpiresIn
public AuthToken withExpiresIn(int expiresIn)
Unix timestamp indicating when this token expires.
-
withScope
public AuthToken withScope(java.lang.String scope)
A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.
-
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
-
-