Class StaticCdpCredentialsProvider
java.lang.Object
com.cloudera.cdp.authentication.credentials.StaticCdpCredentialsProvider
- All Implemented Interfaces:
CdpCredentialsProvider
Simple implementation of CdpCredentialsProvider that just wraps static
CdpCredentials.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns CdpCredentials which the caller can use to authenticate a CDP request.
-
Constructor Details
-
StaticCdpCredentialsProvider
Constructor.- Parameters:
credentials
- the CDP credentials
-
-
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.
-