public interface JWT extends Serializable
Modifier and Type | Method and Description |
---|---|
Header |
getHeader()
Gets the JOSE header of the JSON Web Token (JWT).
|
JWTClaimsSet |
getJWTClaimsSet()
Gets the claims set 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.
|
JWTClaimsSet getJWTClaimsSet() 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.Copyright © 2017 Connect2id Ltd.. All rights reserved.