Class AuthToken


  • public class AuthToken
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AuthToken.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthToken​(TokenType tokenType, java.lang.String accessToken, java.lang.String refreshToken, int expiresIn, java.lang.String scope)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String accessToken()
      A value passed to the authorization server to gain access to the system.
      static AuthToken.Builder builder()  
      boolean equals​(java.lang.Object o)  
      int expiresIn()
      Unix timestamp indicating when this token expires.
      int hashCode()  
      java.lang.String refreshToken()
      A value passed to the authorization server to obtain a new access token.
      java.lang.String scope()
      A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.
      TokenType tokenType()
      An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
      java.lang.String toString()  
      AuthToken withAccessToken​(java.lang.String accessToken)
      A value passed to the authorization server to gain access to the system.
      AuthToken withExpiresIn​(int expiresIn)
      Unix timestamp indicating when this token expires.
      AuthToken withRefreshToken​(java.lang.String refreshToken)
      A value passed to the authorization server to obtain a new access token.
      AuthToken withScope​(java.lang.String scope)
      A space-delimited list of [scopes](https://docs.moov.io/api/authentication/scopes/) that are allowed.
      AuthToken withTokenType​(TokenType tokenType)
      An [RFC 6750](https://www.rfc-editor.org/rfc/rfc6750#section-6.1) token type.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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.
      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object