Package io.moov.sdk.models.components
Class AuthToken.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.AuthToken.Builder
-
- Enclosing class:
- AuthToken
public static final class AuthToken.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthToken.BuilderaccessToken(java.lang.String accessToken)A value passed to the authorization server to gain access to the system.AuthTokenbuild()AuthToken.BuilderexpiresIn(int expiresIn)Unix timestamp indicating when this token expires.AuthToken.BuilderrefreshToken(java.lang.String refreshToken)A value passed to the authorization server to obtain a new access token.AuthToken.Builderscope(java.lang.String scope)A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.AuthToken.BuildertokenType(TokenType tokenType)An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
-
-
-
Method Detail
-
tokenType
public AuthToken.Builder tokenType(TokenType tokenType)
An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
-
accessToken
public AuthToken.Builder accessToken(java.lang.String accessToken)
A value passed to the authorization server to gain access to the system.
-
refreshToken
public AuthToken.Builder refreshToken(java.lang.String refreshToken)
A value passed to the authorization server to obtain a new access token.
-
expiresIn
public AuthToken.Builder expiresIn(int expiresIn)
Unix timestamp indicating when this token expires.
-
scope
public AuthToken.Builder scope(java.lang.String scope)
A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.
-
build
public AuthToken build()
-
-