public interface TokenHandler
TokenHandlerException
.Modifier and Type | Method and Description |
---|---|
String |
generate(JsonValue state)
Generates a new token using the state.
|
void |
validate(String token)
Validates the passed token.
|
JsonValue |
validateAndExtractState(String token)
Validates and parses the token, extracting any encapsulated state.
|
String generate(JsonValue state) throws TokenHandlerException
state
- the stateTokenHandlerException
- on failure to generate tokenvoid validate(String token) throws TokenHandlerException
token
- the token to be validatedInvalidTokenException
- on invalid tokenExpiredTokenException
- on expired tokenTokenHandlerException
- on other failure to validate tokenJsonValue validateAndExtractState(String token) throws TokenHandlerException
token
- the token to be validated and parsedInvalidTokenException
- on invalid tokenExpiredTokenException
- on expired tokenTokenHandlerException
- on other failure to validate or extract tokenCopyright 2010-2022 ForgeRock AS.