|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.crypto.key.KeyProvider.Metadata
public static class KeyProvider.Metadata
Key metadata that is associated with the key.
| Constructor Summary | |
|---|---|
protected |
KeyProvider.Metadata(byte[] bytes)
Deserialize a new metadata object from a set of bytes. |
protected |
KeyProvider.Metadata(String cipher,
int bitLength,
String description,
Map<String,String> attributes,
Date created,
int versions)
|
| Method Summary | |
|---|---|
protected int |
addVersion()
|
String |
getAlgorithm()
Get the algorithm from the cipher. |
Map<String,String> |
getAttributes()
|
int |
getBitLength()
|
String |
getCipher()
|
Date |
getCreated()
|
String |
getDescription()
|
int |
getVersions()
|
protected byte[] |
serialize()
Serialize the metadata to a set of bytes. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected KeyProvider.Metadata(String cipher,
int bitLength,
String description,
Map<String,String> attributes,
Date created,
int versions)
protected KeyProvider.Metadata(byte[] bytes)
throws IOException
bytes - the serialized metadata
IOException| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getDescription()
public Date getCreated()
public String getCipher()
public Map<String,String> getAttributes()
public String getAlgorithm()
public int getBitLength()
public int getVersions()
protected int addVersion()
protected byte[] serialize()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||