com.descope.sdk.mgmt.JwtService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java library used to integrate with Descope.
package com.descope.sdk.mgmt;
import com.descope.exception.DescopeException;
import com.descope.model.jwt.Token;
import java.util.Map;
/** Provide functions for manipulating valid JWT. */
public interface JwtService {
/**
* Update a valid JWT with the custom claims provided. The new JWT will be returned.
*
* @param jwt - Old JWT
* @param customClaims - Custom Claims
* @return - New JWT
*/
Token updateJWTWithCustomClaims(String jwt, Map customClaims)
throws DescopeException;
}