Class MockAesKeyProvider

java.lang.Object
org.apache.hadoop.hbase.io.crypto.MockAesKeyProvider
All Implemented Interfaces:
KeyProvider

@Private public class MockAesKeyProvider extends Object implements KeyProvider
Return a fixed secret key for AES for testing.
  • Constructor Details

  • Method Details

    • init

      public void init(String parameters)
      Description copied from interface: KeyProvider
      Initialize the key provider
      Specified by:
      init in interface KeyProvider
    • getKey

      public Key getKey(String name)
      Description copied from interface: KeyProvider
      Retrieve the key for a given key aliase
      Specified by:
      getKey in interface KeyProvider
      Returns:
      the keys corresponding to the supplied alias, or null if a key is not found
    • getKeys

      public Key[] getKeys(String[] aliases)
      Description copied from interface: KeyProvider
      Retrieve keys for a given set of key aliases
      Specified by:
      getKeys in interface KeyProvider
      Parameters:
      aliases - an array of aliases
      Returns:
      an array of keys corresponding to the supplied aliases, an entry will be null if a key is not found