Interface for parsing JWT header and payload JSON strings into objects
// Source: https://github.com/auth0/java-jwt | License: MIT | Copyright 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.auth0.jwt.interfaces;
import com.auth0.jwt.exceptions.JWTDecodeException;
/**
* The JWTPartsParser class defines which parts of the JWT should be converted
* to its specific Object representation instance.
*/
public interface JWTPartsParser {
/**
* Parses the given JSON into a {@link Payload} instance.
*
* @param json the content of the Payload in a JSON representation.
* @return the Payload.
* @throws JWTDecodeException if the json doesn't have a proper JSON format.
*/
Payload parsePayload(String json) throws JWTDecodeException;
/**
*
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key