Package org.keycloak.protocol.oidc
Class AccessTokenIntrospectionProvider<T extends AccessToken>
java.lang.Object
org.keycloak.protocol.oidc.AccessTokenIntrospectionProvider<T>
- All Implemented Interfaces:
TokenIntrospectionProvider,Provider
- Direct Known Subclasses:
RefreshTokenIntrospectionProvider,RPTIntrospectionProvider
public class AccessTokenIntrospectionProvider<T extends AccessToken>
extends Object
implements TokenIntrospectionProvider
- Author:
- Pedro Igor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientModelprotected EventBuilderprotected final RealmModelprotected final KeycloakSessionprotected Tprotected final TokenManagerprotected UserModelprotected UserSessionModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()jakarta.ws.rs.core.Responseintrospect(String tokenStr, EventBuilder eventBuilder) Introspect thetoken.protected booleanintrospectionChecks(String tokenStr) Performs introspection checks related to token, client, userSession, user etc.transformAccessToken(AccessToken token, UserSessionModel userSession) protected booleanprotected booleanverifyToken(String tokenStr) protected boolean
-
Field Details
-
session
-
tokenManager
-
realm
-
eventBuilder
-
token
-
client
-
userSession
-
user
-
-
Constructor Details
-
AccessTokenIntrospectionProvider
-
-
Method Details
-
introspect
Description copied from interface:TokenIntrospectionProviderIntrospect thetoken.- Specified by:
introspectin interfaceTokenIntrospectionProvider- Parameters:
tokenStr- the token to introspect.- Returns:
- the response with the information about the token
-
transformAccessToken
-
introspectionChecks
Performs introspection checks related to token, client, userSession, user etc. If some of the checks failed, this method is supposed to already set an error event. If all the checks are successful, the instance variables are supposed to be set- Returns:
- true just if all the checks are working
-
verifyToken
-
getTokenClass
-
verifyClient
protected boolean verifyClient() -
verifyUserSession
-
verifyTokenReuse
protected boolean verifyTokenReuse() -
close
public void close()
-