@ProviderType public interface AccessTokenProvider
AccessTokenRequestCustomizer| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken(ResourceResolver resolver,
String userId,
Map<String,?> claims)
Return a valid access token or throws an exception.
|
String getAccessToken(ResourceResolver resolver, String userId, Map<String,?> claims) throws CryptoException, IOException, NullPointerException
Return a valid access token or throws an exception. A new access token is obtained from the authorization server
if needed, by generating a JWT and using it as authorization grant. Custom claims may be added via the
claim parameter. The custom claims do override the claims computed by a AccessTokenProvider
implementation.
An implementation may or may not reuse the access tokens.
resolver - The resource resolver to access the user associated to the userIduserId - The user identifier which has access to the required asymmetric cryptographic materialclaims - An optional map of JWT claims that overrides the claims computed by a AccessTokenProvider
implementation. Providing an empty map or null uses the default
AccessTokenProvider implementation claimsnull)CryptoException - If an error occurred while generating/signing the JWT claimIOException - If an error occurred while communicating with the authorization serverNullPointerException - If the resolver or the userId is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved