Package com.auth0.jwt.interfaces
Interface JWTPartsParser
public interface JWTPartsParser
The JWTPartsParser class defines which parts of the JWT should be converted
to its specific Object representation instance.
-
Method Summary
Modifier and TypeMethodDescriptionparseHeader(String json) Parses the given JSON into aHeaderinstance.parsePayload(String json) Parses the given JSON into aPayloadinstance.
-
Method Details
-
parsePayload
Parses the given JSON into aPayloadinstance.- Parameters:
json- the content of the Payload in a JSON representation.- Returns:
- the Payload.
- Throws:
JWTDecodeException- if the json doesn't have a proper JSON format.
-
parseHeader
Parses the given JSON into aHeaderinstance.- Parameters:
json- the content of the Header in a JSON representation.- Returns:
- the Header.
- Throws:
JWTDecodeException- if the json doesn't have a proper JSON format.
-