public class JWTParser extends java.lang.Object implements JWTPartsParser
| Constructor and Description |
|---|
JWTParser() |
| Modifier and Type | Method and Description |
|---|---|
Header |
parseHeader(java.lang.String json)
Parses the given JSON into a Header instance.
|
Payload |
parsePayload(java.lang.String json)
Parses the given JSON into a Payload instance.
|
public Payload parsePayload(java.lang.String json) throws JWTDecodeException
JWTPartsParserparsePayload in interface JWTPartsParserjson - the content of the Payload in a JSON representation.JWTDecodeException - if the json doesn't have a proper JSON format.public Header parseHeader(java.lang.String json) throws JWTDecodeException
JWTPartsParserparseHeader in interface JWTPartsParserjson - the content of the Header in a JSON representation.JWTDecodeException - if the json doesn't have a proper JSON format.