All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.descope.sdk.mgmt.JwtService Maven / Gradle / Ivy

There is a newer version: 1.0.30
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy