Uses of Class
com.macasaet.fernet.Token
-
-
Uses of Token in com.macasaet.fernet
Methods in com.macasaet.fernet that return Token Modifier and Type Method Description static TokenToken. fromBytes(byte[] bytes)Read a Token from bytes.static TokenToken. fromString(String string)Deserialise a Base64 URL Fernet token string.static TokenToken. generate(Key key, byte[] payload)Convenience method to generate a new Fernet token.static TokenToken. generate(Key key, String plainText)Convenience method to generate a new Fernet token with a string payload.static TokenToken. generate(SecureRandom random, Key key, byte[] payload)Generate a new Fernet token.static TokenToken. generate(SecureRandom random, Key key, String plainText)Convenience method to generate a new Fernet token with a string payload.Methods in com.macasaet.fernet with parameters of type Token Modifier and Type Method Description default TValidator. validateAndDecrypt(Key key, Token token)Check the validity of the token then decrypt and deserialise the payload.default TValidator. validateAndDecrypt(Collection<? extends Key> keys, Token token)Check the validity of a token against a pool of keys.
-