public class DefaultTokenManager extends Object implements TokenManager
DEFAULT_VALIDATOR| Constructor and Description |
|---|
DefaultTokenManager(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
String |
cekManagementAlgorithm(TokenCategory category) |
<T extends Token> |
decode(String token,
Class<T> clazz)
Decodes and verifies the token, or
null if the token was invalid |
<T> T |
decodeClientJWT(String jwt,
ClientModel client,
BiConsumer<JOSE,ClientModel> jwtValidator,
Class<T> clazz) |
String |
encode(Token token)
Encodes the supplied token
|
String |
encodeAndEncrypt(Token token) |
String |
encryptAlgorithm(TokenCategory category) |
LogoutToken |
initLogoutToken(ClientModel client,
UserModel user,
AuthenticatedClientSessionModel clientSession) |
String |
signatureAlgorithm(TokenCategory category) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeClientJWTpublic DefaultTokenManager(KeycloakSession session)
public String encode(Token token)
TokenManagerencode in interface TokenManagertoken - the token to encodepublic <T extends Token> T decode(String token, Class<T> clazz)
TokenManagernull if the token was invaliddecode in interface TokenManagertoken - the token to decodeclazz - the token type to returnnull if the token was not validpublic <T> T decodeClientJWT(String jwt, ClientModel client, BiConsumer<JOSE,ClientModel> jwtValidator, Class<T> clazz)
decodeClientJWT in interface TokenManagerpublic String signatureAlgorithm(TokenCategory category)
signatureAlgorithm in interface TokenManagerpublic String encodeAndEncrypt(Token token)
encodeAndEncrypt in interface TokenManagerpublic String cekManagementAlgorithm(TokenCategory category)
cekManagementAlgorithm in interface TokenManagerpublic String encryptAlgorithm(TokenCategory category)
encryptAlgorithm in interface TokenManagerpublic LogoutToken initLogoutToken(ClientModel client, UserModel user, AuthenticatedClientSessionModel clientSession)
initLogoutToken in interface TokenManagerCopyright © 2021 JBoss by Red Hat. All rights reserved.