CredentialProviderFactory (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.security.alias, class: CredentialProviderFactory

Package org.apache.hadoop.security.alias

# Class CredentialProviderFactory

java.lang.Object
org.apache.hadoop.security.alias.CredentialProviderFactory

@Public @Unstable public abstract class CredentialProviderFactory extends Object
A factory to create a list of CredentialProvider based on the path given in a Configuration. It uses a service loader interface to find the available CredentialProviders and create them based on the list of URIs.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `CREDENTIAL_PROVIDER_PATH`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CredentialProviderFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract CredentialProvider`
  `createProvider(URI providerName, Configuration conf)`
  `static List<CredentialProvider>`
  `getProviders(Configuration conf)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### CREDENTIAL_PROVIDER_PATH

    public static final String CREDENTIAL_PROVIDER_PATH
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### CredentialProviderFactory

    public CredentialProviderFactory()

- ## Method Details

  - ### createProvider

    public abstract CredentialProvider createProvider(URI providerName, Configuration conf) throws IOException
    Throws:
      `IOException`

  - ### getProviders

    public static List<CredentialProvider> getProviders(Configuration conf) throws IOException
    Throws:
      `IOException`