Class OAuth2Token

  • All Implemented Interfaces:
    java.io.Serializable

    @Serializable() 
    public final class OAuth2Token
     implements Serializable
                        

    This class keeps all relevant OAuth token information.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class OAuth2Token.Builder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Set<String> scopes
      private final String accessToken
      private final String refreshToken
      private final Integer expiry
      private final String scope
      private final String type
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Set<String> getScopes()
      final String getAccessToken()
      final String getRefreshToken()
      final Integer getExpiry()
      final String getScope()
      final String getType()
      String toString()
      Boolean equals(Object other) Tokens are considered to be equal if their access code is the same; all other properties are irrelevant for comparison.
      Integer hashCode() The hash code depends only on the access token so that if this object is equal to another OAuth2Token, their hashes will also be equal.
      final static OAuth2Token createOAuth2TokenFromJsonString(String string)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • equals

         Boolean equals(Object other)

        Tokens are considered to be equal if their access code is the same; all other properties are irrelevant for comparison.

      • hashCode

         Integer hashCode()

        The hash code depends only on the access token so that if this object is equal to another OAuth2Token, their hashes will also be equal.