public interface TokenManager
Modifier and Type | Field and Description |
---|---|
static BiConsumer<JOSE,ClientModel> |
DEFAULT_VALIDATOR |
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 token,
ClientModel client,
BiConsumer<JOSE,ClientModel> jwtValidator,
Class<T> clazz) |
default <T> T |
decodeClientJWT(String token,
ClientModel client,
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 clientSessionModel) |
String |
signatureAlgorithm(TokenCategory category) |
static final BiConsumer<JOSE,ClientModel> DEFAULT_VALIDATOR
String encode(Token token)
token
- the token to encode<T extends Token> T decode(String token, Class<T> clazz)
null
if the token was invalidT
- token
- the token to decodeclazz
- the token type to returnnull
if the token was not validString signatureAlgorithm(TokenCategory category)
default <T> T decodeClientJWT(String token, ClientModel client, Class<T> clazz)
T
- token
- client
- clazz
- <T> T decodeClientJWT(String token, ClientModel client, BiConsumer<JOSE,ClientModel> jwtValidator, Class<T> clazz)
String cekManagementAlgorithm(TokenCategory category)
String encryptAlgorithm(TokenCategory category)
LogoutToken initLogoutToken(ClientModel client, UserModel user, AuthenticatedClientSessionModel clientSessionModel)
Copyright © 2021 JBoss by Red Hat. All rights reserved.