Package com.pingidentity.sdk.oauth20
Interface BearerAccessTokenManagementPlugin
- All Superinterfaces:
ConfigurablePlugin,DescribablePlugin,Plugin
This interface defines the methods that the PingFederate calls to issue and validate access tokens.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault IssuedAccessTokenissueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid) Issues anIssuedAccessTokenbased on the specified parameters.default IssuedAccessTokenissueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid, int tokenManagerSequenceNumber) Issues anIssuedAccessTokenbased on the specified parameters.default IssuedAccessTokenissueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid, int tokenManagerSequenceNumber, AuthorizationDetails authorizationDetails) Issues anIssuedAccessTokenbased on the specified parameters.default booleanissuedToken(String accessTokenValue, int tokenManagerSequenceNumber) Indicate if this plugin could have issued the token using the supplied token manager sequence number.validateAccessToken(String accessTokenValue) Validates theAccessTokenand updates the expiration of the token if it hasn't yet expired.Methods inherited from interface com.pingidentity.sdk.ConfigurablePlugin
configureMethods inherited from interface com.pingidentity.sdk.DescribablePlugin
getPluginDescriptor
-
Field Details
-
TOKEN_TYPE
The token type this plugin represents.- See Also:
-
-
Method Details
-
validateAccessToken
Validates theAccessTokenand updates the expiration of the token if it hasn't yet expired.- Parameters:
accessTokenValue- The String representation of the access token.- Returns:
- The
AccessTokenthat was validated.
-
issueAccessToken
default IssuedAccessToken issueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid) Issues anIssuedAccessTokenbased on the specified parameters.- 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.- Returns:
- The issued access token.
-
issueAccessToken
default IssuedAccessToken issueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid, int tokenManagerSequenceNumber) Issues anIssuedAccessTokenbased on the specified parameters.- 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.- Returns:
- The issued access token.
- Since:
- 9.3
-
issueAccessToken
default IssuedAccessToken issueAccessToken(Map<String, AttributeValue> attributes, Scope scope, String clientId, String accessGrantGuid, int tokenManagerSequenceNumber, AuthorizationDetails authorizationDetails) Issues anIssuedAccessTokenbased on the specified parameters.- 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.authorizationDetails- The authorization details of the access token.- Returns:
- The issued access token.
- Since:
- 11.2
-
issuedToken
Indicate if this plugin could have issued the token using the supplied token manager sequence number.- Parameters:
accessTokenValue- The String representation of the access token.tokenManagerSequenceNumber- The sequence number of this plugin.- Returns:
- True if this token manager could have generated the token. Default implementation is to return true.
- Since:
- 9.3
-