public static class KeyProvider.Metadata extends Object
Modifier | Constructor and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
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 metadataIOException
public String getDescription()
public Date getCreated()
public Map<String,String> getAttributes()
public String getAlgorithm()
public int getBitLength()
public int getVersions()
protected int addVersion()
protected byte[] serialize() throws IOException
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.