Package org.keycloak.protocol.oidc
Class AccessTokenIntrospectionProvider<T extends org.keycloak.representations.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 org.keycloak.representations.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) protected booleanintrospectionChecks(String tokenStr) Performs introspection checks related to token, client, userSession, user etc.org.keycloak.representations.AccessTokentransformAccessToken(org.keycloak.representations.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
- Specified by:
introspectin interfaceTokenIntrospectionProvider
-
transformAccessToken
public org.keycloak.representations.AccessToken transformAccessToken(org.keycloak.representations.AccessToken token, UserSessionModel userSession) -
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()
-