Token.Jose, Token.Jwt
Modifier and Type | Field and Description |
---|---|
static String |
EXPIRATION
The header short for expiration.
|
static String |
ISSUED
The header short for issuing time.
|
static String |
SUBJECT
The header short for subject.
|
Constructor and Description |
---|
Jwt(Identity idt,
long age)
JSON Web Token.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encoded()
Base64 encoded JSON output.
|
javax.json.JsonObject |
json()
JSON output.
|
public static final String SUBJECT
public static final String ISSUED
public static final String EXPIRATION
public Jwt(Identity idt, long age)
idt
- Identityage
- Lifetime of token.public javax.json.JsonObject json()
Token
public byte[] encoded() throws IOException
Token
encoded
in interface Token
IOException
- If encoding failsCopyright © 2015–2018 Take. All rights reserved.