public class JWTParser extends Object implements JWTPartsParser
| Constructor and Description |
|---|
JWTParser() |
| Modifier and Type | Method and Description |
|---|---|
Header |
parseHeader(String json)
Parses the given JSON into a Header instance.
|
Payload |
parsePayload(String json)
Parses the given JSON into a Payload instance.
|
public Payload parsePayload(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(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.Copyright © 2017. All rights reserved.