|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JWT
JSON Web Token (JWT) interface.
| Method Summary | |
|---|---|
ReadOnlyClaimsSet |
getClaimsSet()
Gets the claims set of the JSON Web Token (JWT). |
ReadOnlyHeader |
getHeader()
Gets the JOSE header of the JSON Web Token (JWT). |
Base64URL[] |
getParsedParts()
Gets the original parsed Base64URL parts used to create the JSON Web Token (JWT). |
String |
getParsedString()
Gets the original parsed string used to create the JSON Web Token (JWT). |
String |
serialize()
Serialises the JSON Web Token (JWT) to its compact format consisting of Base64URL-encoded parts delimited by period ('.') characters. |
| Method Detail |
|---|
ReadOnlyHeader getHeader()
ReadOnlyClaimsSet getClaimsSet()
throws ParseException
null if not available (for an
encrypted JWT that isn't decrypted).
ParseException - If the payload of the JWT doesn't represent a
valid JSON object and a JWT claims set.Base64URL[] getParsedParts()
null if the JWT was created from scratch. The
individual parts may be empty or null to indicate a
missing part.String getParsedString()
null if
the JWT was created from scratch.getParsedParts()String serialize()
IllegalStateException - If the JWT is not in a state that
permits serialisation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||