Class TokenIntrospectionAccessTokenResolver
- java.lang.Object
-
- org.forgerock.http.oauth2.resolver.TokenIntrospectionAccessTokenResolver
-
- All Implemented Interfaces:
AccessTokenResolver
public final class TokenIntrospectionAccessTokenResolver extends Object implements AccessTokenResolver
AnAccessTokenResolver
which is RFC 7662 compliant. It will resolve the access token by calling the token introspection endpoint.- See Also:
- RFC-7662
-
-
Constructor Summary
Constructors Constructor Description TokenIntrospectionAccessTokenResolver(Handler client, URI introspectionEndpointUri)
Creates a newTokenIntrospectionAccessTokenResolver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<AccessTokenInfo,AccessTokenException>
resolve(Context context, String token)
Resolves a given access token against an authorization server.
-
-
-
Constructor Detail
-
TokenIntrospectionAccessTokenResolver
public TokenIntrospectionAccessTokenResolver(Handler client, URI introspectionEndpointUri)
Creates a newTokenIntrospectionAccessTokenResolver
.- Parameters:
client
- the handler to use to resolve the access token.introspectionEndpointUri
- the URI to use to resolve the access token.
-
-
Method Detail
-
resolve
public Promise<AccessTokenInfo,AccessTokenException> resolve(Context context, String token)
Description copied from interface:AccessTokenResolver
Resolves a given access token against an authorization server.- Specified by:
resolve
in interfaceAccessTokenResolver
- Parameters:
context
- Context chain used to keep a relationship between requests (tracking)token
- token identifier to be resolved- Returns:
- a promise completed either with a valid
AccessTokenInfo
(well-formed, known by the server), or by an exception
-
-