Package com.protegrity.ap.java
Class AuthTokenProvider
java.lang.Object
com.protegrity.ap.java.AuthTokenProvider
Provides JWT token retrieval functionality for Protegrity AI Developer Edition authentication.
This class handles HTTP communication with the Protegrity authentication service to obtain JWT tokens required for API operations.
- Since:
- 1.0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe hostname for Protegrity AI Developer Edition API. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthTokenResponsegetJwtToken(String email, String password, String apiKey) Obtains a JWT token from the Protegrity authentication service.
-
Field Details
-
DEV_EDITION_HOST
The hostname for Protegrity AI Developer Edition API.- See Also:
-
-
Constructor Details
-
AuthTokenProvider
public AuthTokenProvider()
-
-
Method Details
-
getJwtToken
Obtains a JWT token from the Protegrity authentication service.- Parameters:
email- the user's email addresspassword- the user's passwordapiKey- the API key for service access- Returns:
- an
AuthTokenResponsecontaining the JWT token and status information - Throws:
IllegalArgumentException- if any parameter is null or empty
-