public class AuthnClient extends Object implements AuthnProvider
| Constructor and Description |
|---|
AuthnClient(Credentials credentials,
Endpoints endpoints) |
AuthnClient(Credentials credentials,
Endpoints endpoints,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
Token |
authenticate()
Return an authentication token.
|
Token |
authenticate(boolean useCachedToken)
Return an authentication token.
|
String |
login()
Login to a Conjur account with the credentials specified in the configuration
|
public AuthnClient(Credentials credentials, Endpoints endpoints)
public AuthnClient(Credentials credentials, Endpoints endpoints, SSLContext sslContext)
public Token authenticate()
AuthnProviderauthenticate(true)
if the implementation supports token caching.authenticate in interface AuthnProviderpublic Token authenticate(boolean useCachedToken)
AuthnProviderauthenticate in interface AuthnProvideruseCachedToken - whether to use a cached token.public String login()
Copyright © 2025. All rights reserved.