public final class TokenIntrospectionAccessTokenResolver extends Object implements AccessTokenResolver
AccessTokenResolver
which is RFC 7662 compliant. It will resolve
the access token by calling the token introspection endpoint.
Constructor and Description |
---|
TokenIntrospectionAccessTokenResolver(Handler client,
URI introspectionEndpointUri)
Creates a new
TokenIntrospectionAccessTokenResolver . |
Modifier and Type | Method and Description |
---|---|
Promise<AccessTokenInfo,AccessTokenException> |
resolve(Context context,
String token)
Resolves a given access token against an authorization server.
|
public TokenIntrospectionAccessTokenResolver(Handler client, URI introspectionEndpointUri)
TokenIntrospectionAccessTokenResolver
.client
- the handler to use to resolve the access token.introspectionEndpointUri
- the URI to use to resolve the access token.public Promise<AccessTokenInfo,AccessTokenException> resolve(Context context, String token)
AccessTokenResolver
resolve
in interface AccessTokenResolver
context
- Context chain used to keep a relationship between requests (tracking)token
- token identifier to be resolvedAccessTokenInfo
(well-formed, known by the server),
or by an exceptionCopyright © 2010-2018, ForgeRock All Rights Reserved.