public class EncryptionData extends Object
Constructor and Description |
---|
EncryptionData() |
Modifier and Type | Method and Description |
---|---|
static void |
consumeJsonObject(com.fasterxml.jackson.core.JsonParser parser) |
void |
copyValues(EncryptionData data) |
static EncryptionData |
deserialize(com.fasterxml.jackson.core.JsonParser parser) |
static EncryptionData |
deserialize(String inputData) |
static HashMap<String,String> |
deserializeKeyWrappingMetadata(com.fasterxml.jackson.core.JsonParser parser) |
byte[] |
getContentEncryptionIV()
Gets the content encryption IV.
|
EncryptionAgent |
getEncryptionAgent()
Gets the encryption agent that is used to identify the encryption protocol version and encryption algorithm.
|
HashMap<String,String> |
getKeyWrappingMetadata()
Gets the metadata for encryption.
|
WrappedContentKey |
getWrappedContentKey()
Gets the wrapped key that is used to store the wrapping algorithm, key identifier and the encrypted key bytes.
|
String |
serialize() |
void |
serialize(com.fasterxml.jackson.core.JsonGenerator generator) |
void |
setContentEncryptionIV(byte[] contentEncryptionIV)
Sets the content encryption IV.
|
void |
setEncryptionAgent(EncryptionAgent encryptionAgent)
Sets the encryption agent that is used to identify the encryption protocol version and encryption algorithm.
|
void |
setKeyWrappingMetadata(HashMap<String,String> keyWrappingMetadata)
Sets the metadata for encryption.
|
void |
setWrappedContentKey(WrappedContentKey wrappedContentKey)
Sets the wrapped key that is used to store the wrapping algorithm, key identifier and the encrypted key bytes.
|
public byte[] getContentEncryptionIV()
public EncryptionAgent getEncryptionAgent()
public WrappedContentKey getWrappedContentKey()
WrappedContentKey
object that stores the wrapping algorithm, key identifier and the encrypted
key bytes.public HashMap<String,String> getKeyWrappingMetadata()
public void setContentEncryptionIV(byte[] contentEncryptionIV)
contentEncryptionIV
- The content encryption IV.public void setEncryptionAgent(EncryptionAgent encryptionAgent)
encryptionAgent
- The encryption agent.public void setWrappedContentKey(WrappedContentKey wrappedContentKey)
wrappedContentKey
- A WrappedContentKey
object that stores the wrapping algorithm, key identifier and the
encrypted key bytes.public void setKeyWrappingMetadata(HashMap<String,String> keyWrappingMetadata)
keyWrappingMetadata
- A HashMap containing the encryption metadata in a key-value format.public String serialize() throws IOException
IOException
public void serialize(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public void copyValues(EncryptionData data) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingException
IOException
public static EncryptionData deserialize(String inputData) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingException
IOException
public static EncryptionData deserialize(com.fasterxml.jackson.core.JsonParser parser) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
public static HashMap<String,String> deserializeKeyWrappingMetadata(com.fasterxml.jackson.core.JsonParser parser) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
public static void consumeJsonObject(com.fasterxml.jackson.core.JsonParser parser) throws IOException
IOException
Copyright © 2019. All rights reserved.