Package org.takes.facets.auth
Interface Token
-
- All Known Implementing Classes:
Token.Jose
,Token.Jwt
public interface Token
JSON Token.All implementations of this interface must be immutable and thread-safe.
- Since:
- 1.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Token.Jose
JSON Object Signing and Encryption Header.static class
Token.Jwt
JSON Web Token.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encoded()
Base64 encoded JSON output.javax.json.JsonObject
json()
JSON output.
-
-
-
Method Detail
-
json
javax.json.JsonObject json()
JSON output.- Returns:
- The Token in JSON notation.
-
encoded
byte[] encoded() throws IOException
Base64 encoded JSON output.- Returns:
- The Token in JSON notation, Base64-encoded.
- Throws:
IOException
- If encoding fails
-
-