Class KeyManager

java.lang.Object
org.apache.hadoop.hdfs.server.balancer.KeyManager
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hdfs.protocol.datatransfer.sasl.DataEncryptionKeyFactory

@Private public class KeyManager extends Object implements Closeable, org.apache.hadoop.hdfs.protocol.datatransfer.sasl.DataEncryptionKeyFactory
The class provides utilities for key and token management.
  • Constructor Details

  • Method Details

    • startBlockKeyUpdater

      public void startBlockKeyUpdater()
    • getAccessToken

      public org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier> getAccessToken(org.apache.hadoop.hdfs.protocol.ExtendedBlock eb, org.apache.hadoop.fs.StorageType[] storageTypes, String[] storageIds) throws IOException
      Get an access token for a block.
      Throws:
      IOException
    • newDataEncryptionKey

      public org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey newDataEncryptionKey()
      Specified by:
      newDataEncryptionKey in interface org.apache.hadoop.hdfs.protocol.datatransfer.sasl.DataEncryptionKeyFactory
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable