Class AuthTokenProvider

java.lang.Object
com.protegrity.ap.java.AuthTokenProvider

public class AuthTokenProvider extends Object
Provides JWT token retrieval functionality for Protegrity Developer Edition authentication.

This class handles HTTP communication with the Protegrity authentication service to obtain JWT tokens required for API operations.

Since:
1.0.0
  • Field Details

    • DEV_EDITION_HOST

      public static final String DEV_EDITION_HOST
      The hostname for Protegrity Developer Edition API.
      See Also:
  • Constructor Details

    • AuthTokenProvider

      public AuthTokenProvider()
  • Method Details

    • getJwtToken

      public static AuthTokenResponse getJwtToken(String email, String password, String apiKey)
      Obtains a JWT token from the Protegrity authentication service.
      Parameters:
      email - the user's email address
      password - the user's password
      apiKey - the API key for service access
      Returns:
      an AuthTokenResponse containing the JWT token and status information
      Throws:
      IllegalArgumentException - if any parameter is null or empty