Class AuthorizationToken


  • public class AuthorizationToken
    extends Object
    Models an authorization token that is returned from the OAuth2 authorize request.
    Since:
    12.0.0
    • Constructor Detail

      • AuthorizationToken

        public AuthorizationToken​(Map<String,​String> token,
                                  boolean fragment)
        Constructs a new AuthorizationToken.
        Parameters:
        token - A Map of tokens to be returned.
        fragment - true if the tokens should be returned as a fragment of the URL.
    • Method Detail

      • getToken

        public Map<String,​String> getToken()
        Gets the tokens.
        Returns:
        The tokens.
      • isFragment

        public boolean isFragment()
        Whether the tokens should be returned as a fragment of the URL.
        Returns:
        true if the tokens should be returned as a fragment of the URL.