KeyProviderCache (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs, class: KeyProviderCache

Package org.apache.hadoop.hdfs

# Class KeyProviderCache

java.lang.Object
org.apache.hadoop.hdfs.KeyProviderCache

@Private public class KeyProviderCache extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.slf4j.Logger`
  `LOG`
  `static final int`
  `SHUTDOWN_HOOK_PRIORITY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `KeyProviderCache(long expiryMs)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `org.apache.hadoop.crypto.key.KeyProvider`
  `get(org.apache.hadoop.conf.Configuration conf, URI serverProviderUri)`
  `void`
  `setKeyProvider(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.crypto.key.KeyProvider keyProvider)`

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

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

- ## Field Details

  - ### LOG

    public static final org.slf4j.Logger LOG

  - ### SHUTDOWN_HOOK_PRIORITY

    public static final int SHUTDOWN_HOOK_PRIORITY
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### KeyProviderCache

    public KeyProviderCache(long expiryMs)

- ## Method Details

  - ### get

    public org.apache.hadoop.crypto.key.KeyProvider get(org.apache.hadoop.conf.Configuration conf, URI serverProviderUri)

  - ### setKeyProvider

    @VisibleForTesting public void setKeyProvider(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.crypto.key.KeyProvider keyProvider)