| Constructor and Description |
|---|
JWTOAuthAuth(String clientId,
String privateKeyPem,
String publicKeyId)
Create a JWTOAuthAuth instance with default base URL.
|
JWTOAuthAuth(String clientId,
String privateKeyPem,
String publicKeyId,
String baseUrl)
Create a JWTOAuthAuth instance with custom base URL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getToken()
Get the authentication token.
|
String |
getType()
Get the authentication type (e.g., "Bearer", "JWT").
|
void |
setBaseUrl(String baseUrl)
Set the base URL for token refresh.
|
void |
setHttpClient(HttpClient httpClient)
Set the HttpClient for token refresh.
|
public JWTOAuthAuth(String clientId, String privateKeyPem, String publicKeyId)
clientId - the client IDprivateKeyPem - the private key in PEM format (base64 encoded PKCS8)publicKeyId - the public key IDpublic JWTOAuthAuth(String clientId, String privateKeyPem, String publicKeyId, String baseUrl)
clientId - the client IDprivateKeyPem - the private key in PEM format (base64 encoded PKCS8)publicKeyId - the public key IDbaseUrl - the base URL for token refreshpublic void setBaseUrl(String baseUrl)
baseUrl - the base URLpublic void setHttpClient(HttpClient httpClient)
httpClient - the HttpClientpublic String getToken()
AuthCopyright © 2026. All rights reserved.