public abstract class AbstractOAuth2Token
extends java.lang.Object
implements java.io.Serializable
OAuth2AccessToken,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOAuth2Token(java.lang.String tokenValue)
Sub-class constructor.
|
protected |
AbstractOAuth2Token(java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt)
Sub-class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.time.Instant |
getExpiresAt()
Returns the expiration time on or after which the token MUST NOT be accepted.
|
java.time.Instant |
getIssuedAt()
Returns the time at which the token was issued.
|
java.lang.String |
getTokenValue()
Returns the token value.
|
int |
hashCode() |
protected AbstractOAuth2Token(java.lang.String tokenValue)
tokenValue - the token valueprotected AbstractOAuth2Token(java.lang.String tokenValue,
@Nullable
java.time.Instant issuedAt,
@Nullable
java.time.Instant expiresAt)
tokenValue - the token valueissuedAt - the time at which the token was issued, may be nullexpiresAt - the expiration time on or after which the token MUST NOT be accepted, may be nullpublic java.lang.String getTokenValue()
@Nullable public java.time.Instant getIssuedAt()
@Nullable public java.time.Instant getExpiresAt()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object