|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.security.EncryptionUtil
@InterfaceAudience.Private @InterfaceStability.Evolving public class EncryptionUtil
Some static utility methods for encryption uses in hbase-client.
| Constructor Summary | |
|---|---|
EncryptionUtil()
|
|
| Method Summary | |
|---|---|
static Key |
unwrapKey(org.apache.hadoop.conf.Configuration conf,
String subject,
byte[] value)
Unwrap a key by decrypting it with the secret key of the given subject. |
static Key |
unwrapWALKey(org.apache.hadoop.conf.Configuration conf,
String subject,
byte[] value)
Unwrap a wal key by decrypting it with the secret key of the given subject. |
static byte[] |
wrapKey(org.apache.hadoop.conf.Configuration conf,
byte[] key,
String algorithm)
Protect a key by encrypting it with the secret key of the given subject. |
static byte[] |
wrapKey(org.apache.hadoop.conf.Configuration conf,
String subject,
Key key)
Protect a key by encrypting it with the secret key of the given subject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncryptionUtil()
| Method Detail |
|---|
public static byte[] wrapKey(org.apache.hadoop.conf.Configuration conf,
byte[] key,
String algorithm)
throws IOException
conf - configurationkey - the raw key bytesalgorithm - the algorithm to use with this key material
IOException
public static byte[] wrapKey(org.apache.hadoop.conf.Configuration conf,
String subject,
Key key)
throws IOException
conf - configurationsubject - subject key aliaskey - the key
IOException
public static Key unwrapKey(org.apache.hadoop.conf.Configuration conf,
String subject,
byte[] value)
throws IOException,
KeyException
conf - configurationsubject - subject key aliasvalue - the encrypted key bytes
IOException
KeyException
public static Key unwrapWALKey(org.apache.hadoop.conf.Configuration conf,
String subject,
byte[] value)
throws IOException,
KeyException
conf - configurationsubject - subject key aliasvalue - the encrypted key bytes
IOException - if key is not found for the subject, or if some I/O error occurs
KeyException - if fail to unwrap the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||