Package com.auth0.jwt.interfaces
Interface JWTPartsParser
-
- All Known Implementing Classes:
JWTParser
public interface JWTPartsParser
The JWTPartsParser class defines which parts of the JWT should be converted to its specific Object representation instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Header
parseHeader(java.lang.String json)
Parses the given JSON into aHeader
instance.Payload
parsePayload(java.lang.String json)
Parses the given JSON into aPayload
instance.
-
-
-
Method Detail
-
parsePayload
Payload parsePayload(java.lang.String json) throws JWTDecodeException
Parses the given JSON into aPayload
instance.- 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
Header parseHeader(java.lang.String json) throws JWTDecodeException
Parses the given JSON into aHeader
instance.- 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.
-
-