Package com.protegrity.ap.java
Class Authenticator
java.lang.Object
com.protegrity.ap.java.Authenticator
Handles authentication with Protegrity AI 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 addressDEV_EDITION_PASSWORD- User passwordDEV_EDITION_API_KEY- API key for service access
- Since:
- 1.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the API key used for authentication.Returns the JWT token obtained during authentication.
-
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
Returns the API key used for authentication.- Returns:
- the API key
-
getJwtToken
Returns the JWT token obtained during authentication.- Returns:
- the JWT token
-