Class CdpSystemPropertiesCredentialsProvider
java.lang.Object
com.cloudera.cdp.authentication.credentials.CdpSystemPropertiesCredentialsProvider
- All Implemented Interfaces:
CdpCredentialsProvider
public class CdpSystemPropertiesCredentialsProvider
extends Object
implements CdpCredentialsProvider
CdpCredentialsProvider implementation that provides credentials by looking
at the CDP_ACCESS_KEY_ID, CDP_PRIVATE_KEY and CDP_ACCESS_TOKEN system properties.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns CdpCredentials which the caller can use to authenticate a CDP request.toString()
-
Field Details
-
CDP_ACCESS_KEY_ID
Name of system variable holding the users CDP access key ID.- See Also:
-
CDP_PRIVATE_KEY
Name of system variable holding the users CDP private key.- See Also:
-
CDP_ACCESS_TOKEN
Name of system variable holding the users CDP access token.- See Also:
-
-
Constructor Details
-
CdpSystemPropertiesCredentialsProvider
public CdpSystemPropertiesCredentialsProvider()
-
-
Method Details
-
getCredentials
Description copied from interface:CdpCredentialsProvider
Returns CdpCredentials which the caller can use to authenticate a CDP request. Each implementation of CdpCredentialsProvider can chose its own strategy for loading credentials. For example, an implementation might load credentials from an existing key management system, or load new credentials when credentials are rotated.- Specified by:
getCredentials
in interfaceCdpCredentialsProvider
- Returns:
- CdpCredentials which the caller can use to authenticate an CDP request.
-
toString
-