Token.Jose, Token.Jwt
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM
The header short for algorithm.
|
static String |
TYP
The header short for token type.
|
Constructor and Description |
---|
Jose(int bitlength)
JSON Object Signing and Encryption Header.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encoded()
Base64 encoded JSON output.
|
javax.json.JsonObject |
json()
JSON output.
|
public static final String ALGORITHM
public static final String TYP
public Jose(int bitlength)
bitlength
- Of encryption bits.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.