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
-
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)
-
-
Method Detail
-
getScopes
final Set<String> getScopes()
-
getAccessToken
final String getAccessToken()
-
getRefreshToken
final String getRefreshToken()
-
getExpiry
final Integer getExpiry()
-
getScope
final String getScope()
-
getType
final String getType()
-
toString
String toString()
-
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.
-
createOAuth2TokenFromJsonString
final static OAuth2Token createOAuth2TokenFromJsonString(String string)
-
-
-
-