Class Authenticator

java.lang.Object
com.protegrity.ap.java.Authenticator

public class Authenticator extends Object
Handles authentication with Protegrity Developer Edition services.

This class manages the authentication process using environment variables and obtains JWT tokens required for API operations. Authentication credentials are read from the following environment variables:

  • DEV_EDITION_EMAIL - User email address
  • DEV_EDITION_PASSWORD - User password
  • DEV_EDITION_API_KEY - API key for service access
Since:
1.0.0
  • Constructor Details

    • Authenticator

      public Authenticator()
      Constructs a new Authenticator and performs authentication.
      Throws:
      InitializationException - if authentication fails or required environment variables are missing
  • Method Details

    • getApiKey

      public String getApiKey()
      Returns the API key used for authentication.
      Returns:
      the API key
    • getJwtToken

      public String getJwtToken()
      Returns the JWT token obtained during authentication.
      Returns:
      the JWT token