public interface TokenManager
Modifier and Type | Method and Description |
---|---|
<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,
Class<T> clazz) |
String |
encode(Token token)
Encodes the supplied token
|
String |
signatureAlgorithm(TokenCategory category) |
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)
<T> T decodeClientJWT(String token, ClientModel client, Class<T> clazz)
Copyright © 2019 JBoss by Red Hat. All rights reserved.