Package org.keycloak.jose.jws
Class DefaultTokenManager
java.lang.Object
org.keycloak.jose.jws.DefaultTokenManager
- All Implemented Interfaces:
TokenManager
-
Field Summary
Fields inherited from interface org.keycloak.models.TokenManager
DEFAULT_VALIDATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncekManagementAlgorithm
(TokenCategory category) <T extends Token>
TDecodes and verifies the token, ornull
if the token was invalid<T> T
decodeClientJWT
(String jwt, ClientModel client, BiConsumer<JOSE, ClientModel> jwtValidator, Class<T> clazz) Encodes the supplied tokenencodeAndEncrypt
(Token token) encryptAlgorithm
(TokenCategory category) initLogoutToken
(ClientModel client, UserModel user, AuthenticatedClientSessionModel clientSession) signatureAlgorithm
(TokenCategory category) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.models.TokenManager
decodeClientJWT
-
Constructor Details
-
DefaultTokenManager
-
-
Method Details
-
encode
Description copied from interface:TokenManager
Encodes the supplied token- Specified by:
encode
in interfaceTokenManager
- Parameters:
token
- the token to encode- Returns:
- The encoded token
-
decode
Description copied from interface:TokenManager
Decodes and verifies the token, ornull
if the token was invalid- Specified by:
decode
in interfaceTokenManager
- Parameters:
token
- the token to decodeclazz
- the token type to return- Returns:
- The decoded token, or
null
if the token was not valid
-
decodeClientJWT
public <T> T decodeClientJWT(String jwt, ClientModel client, BiConsumer<JOSE, ClientModel> jwtValidator, Class<T> clazz) - Specified by:
decodeClientJWT
in interfaceTokenManager
-
signatureAlgorithm
- Specified by:
signatureAlgorithm
in interfaceTokenManager
-
encodeAndEncrypt
- Specified by:
encodeAndEncrypt
in interfaceTokenManager
-
cekManagementAlgorithm
- Specified by:
cekManagementAlgorithm
in interfaceTokenManager
-
encryptAlgorithm
- Specified by:
encryptAlgorithm
in interfaceTokenManager
-
initLogoutToken
public LogoutToken initLogoutToken(ClientModel client, UserModel user, AuthenticatedClientSessionModel clientSession) - Specified by:
initLogoutToken
in interfaceTokenManager
-