Package org.takes.facets.auth
Class Token.Jwt
- java.lang.Object
-
- org.takes.facets.auth.Token.Jwt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.takes.facets.auth.Token
Token.Jose, Token.Jwt
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encoded()
Base64 encoded JSON output.javax.json.JsonObject
json()
JSON output.
-
-
-
Field Detail
-
SUBJECT
public static final String SUBJECT
The header short for subject.- See Also:
- Constant Field Values
-
ISSUED
public static final String ISSUED
The header short for issuing time.- See Also:
- Constant Field Values
-
EXPIRATION
public static final String EXPIRATION
The header short for expiration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Jwt
public Jwt(Identity idt, long age)
JSON Web Token.- Parameters:
idt
- Identityage
- Lifetime of token.
-
-
Method Detail
-
json
public javax.json.JsonObject json()
Description copied from interface:Token
JSON output.
-
-