Modifier and Type | Class and Description |
---|---|
class |
TokenExpiredException
This is a special case of the
TokenValidationException that indicates that the Fernet token is invalid
because the application-defined time-to-live has elapsed. |
Modifier and Type | Method and Description |
---|---|
default T |
Validator.validateAndDecrypt(Collection<? extends Key> keys,
Token token)
Check the validity of a token against a pool of keys.
|
<T> T |
Token.validateAndDecrypt(Collection<? extends Key> keys,
Validator<T> validator)
Check the validity of this token against a collection of keys.
|
protected byte[] |
Token.validateAndDecrypt(Key key,
Instant earliestValidInstant,
Instant latestValidInstant) |
default T |
Validator.validateAndDecrypt(Key key,
Token token)
Check the validity of the token then decrypt and deserialise the payload.
|
<T> T |
Token.validateAndDecrypt(Key key,
Validator<T> validator)
Check the validity of this token.
|
Copyright © 2017–2018. All rights reserved.