Class AuthToken.Builder

  • Enclosing class:
    AuthToken

    public static final class AuthToken.Builder
    extends java.lang.Object
    • 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.