public interface BearerAccessTokenManagementPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
static String |
TOKEN_TYPE
The token type this plugin represents.
|
Modifier and Type | Method and Description |
---|---|
default IssuedAccessToken |
issueAccessToken(Map<String,AttributeValue> attributes,
Scope scope,
String clientId,
String accessGrantGuid)
Issues an
IssuedAccessToken based on the specified parameters. |
default IssuedAccessToken |
issueAccessToken(Map<String,AttributeValue> attributes,
Scope scope,
String clientId,
String accessGrantGuid,
int tokenManagerSequenceNumber)
Issues an
IssuedAccessToken based on the specified parameters. |
default boolean |
issuedToken(String accessTokenValue,
int tokenManagerSequenceNumber)
Indicate if this plugin could have issued the token using the supplied token manager sequence number.
|
AccessToken |
validateAccessToken(String accessTokenValue)
Validates the
AccessToken and updates the expiration of the token if it hasn't yet expired. |
configure
getPluginDescriptor
static final String TOKEN_TYPE
AccessToken validateAccessToken(String accessTokenValue)
AccessToken
and updates the expiration of the token if it hasn't yet expired.accessTokenValue
- The String representation of the access token.AccessToken
that was validated.default IssuedAccessToken issueAccessToken(Map<String,AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid)
IssuedAccessToken
based on the specified parameters.attributes
- The attributes associated with the access token.scope
- The scope of the access token.clientId
- The client ID of the access token.accessGrantGuid
- The access grant GUID of the access token.default IssuedAccessToken issueAccessToken(Map<String,AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid, int tokenManagerSequenceNumber)
IssuedAccessToken
based on the specified parameters.attributes
- The attributes associated with the access token.scope
- The scope of the access token.clientId
- The client ID of the access token.accessGrantGuid
- The access grant GUID of the access token.tokenManagerSequenceNumber
- The sequence number of this plugin.default boolean issuedToken(String accessTokenValue, int tokenManagerSequenceNumber)
accessTokenValue
- The String representation of the access token.tokenManagerSequenceNumber
- The sequence number of this plugin.Copyright 2019 Ping Identity Corp. All rights reserved.