Class StaticCdpCredentialsProvider

java.lang.Object
com.cloudera.cdp.authentication.credentials.StaticCdpCredentialsProvider
All Implemented Interfaces:
CdpCredentialsProvider

public class StaticCdpCredentialsProvider extends Object implements CdpCredentialsProvider
Simple implementation of CdpCredentialsProvider that just wraps static CdpCredentials.
  • Constructor Details

    • StaticCdpCredentialsProvider

      public StaticCdpCredentialsProvider(CdpCredentials credentials)
      Constructor.
      Parameters:
      credentials - the CDP credentials
  • Method Details

    • getCredentials

      public CdpCredentials 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 interface CdpCredentialsProvider
      Returns:
      CdpCredentials which the caller can use to authenticate an CDP request.