Package com.cyberark.conjur.api
Interface AuthnProvider
-
- All Known Implementing Classes:
AuthnClient,AuthnTokenClient
public interface AuthnProviderProvides Conjur authentication tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tokenauthenticate()Return an authentication token.Tokenauthenticate(boolean useCachedToken)Return an authentication token.
-
-
-
Method Detail
-
authenticate
Token authenticate()
Return an authentication token. This method should be equivalent toauthenticate(true)if the implementation supports token caching.- Returns:
- a Conjur authentication token
-
authenticate
Token authenticate(boolean useCachedToken)
Return an authentication token. If the implementation supports token caching and useCachedToken is true, it should return a cached token if a valid (non-expired) one is available. If useCachedToken is false, it should always fetch a fresh token from the Conjur authn service.- Parameters:
useCachedToken- whether to use a cached token.- Returns:
- a Conjur authentication token
-
-