public class AccessToken extends SecurityToken
SecurityToken
representing an OAuth 2.0 Access Token.
An access token is a credential that represents an authorization granted by the resource owner to the client. It is primarily used by the client to access protected resources on either a resource server or the authorization server that originally issued the access token.
Modifier and Type | Class and Description |
---|---|
static class |
AccessToken.TokenType |
Constructor and Description |
---|
AccessToken(AccessToken.TokenType tokenType,
java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt) |
AccessToken(AccessToken.TokenType tokenType,
java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt,
java.util.Set<java.lang.String> scopes) |
AccessToken(AccessToken.TokenType tokenType,
java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt,
java.util.Set<java.lang.String> scopes,
java.util.Map<java.lang.String,java.lang.Object> additionalParameters) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalParameters() |
java.util.Set<java.lang.String> |
getScopes() |
AccessToken.TokenType |
getTokenType() |
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
public AccessToken(AccessToken.TokenType tokenType, java.lang.String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt)
public AccessToken(AccessToken.TokenType tokenType, java.lang.String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt, java.util.Set<java.lang.String> scopes)
public AccessToken(AccessToken.TokenType tokenType, java.lang.String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt, java.util.Set<java.lang.String> scopes, java.util.Map<java.lang.String,java.lang.Object> additionalParameters)
public AccessToken.TokenType getTokenType()
public java.util.Set<java.lang.String> getScopes()
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalParameters()