Class MockAesKeyProvider
java.lang.Object
org.apache.hadoop.hbase.io.crypto.MockAesKeyProvider
- All Implemented Interfaces:
KeyProvider
Return a fixed secret key for AES for testing.
-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.io.crypto.KeyProvider
PASSWORD, PASSWORDFILE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MockAesKeyProvider
public MockAesKeyProvider()
-
-
Method Details
-
init
Description copied from interface:KeyProvider
Initialize the key provider- Specified by:
init
in interfaceKeyProvider
-
getKey
Description copied from interface:KeyProvider
Retrieve the key for a given key aliase- Specified by:
getKey
in interfaceKeyProvider
- Returns:
- the keys corresponding to the supplied alias, or null if a key is not found
-
getKeys
Description copied from interface:KeyProvider
Retrieve keys for a given set of key aliases- Specified by:
getKeys
in interfaceKeyProvider
- 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
-