EncryptionData Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.EncryptionData

public class EncryptionData

RESERVED FOR INTERNAL USE. Represents the encryption data that is stored on the service.

Method Summary

Modifier and Type Method and Description
void consumeJsonObject(JsonParser parser)
void copyValues(EncryptionData data)
EncryptionData deserialize(JsonParser parser)
EncryptionData deserialize(String inputData)
HashMap<String, String> deserializeKeyWrappingMetadata(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(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.

Method Details

consumeJsonObject

public static void consumeJsonObject(JsonParser parser)

Parameters:

parser

copyValues

public void copyValues(EncryptionData data)

Parameters:

data

deserialize

public static EncryptionData deserialize(JsonParser parser)

Parameters:

parser

deserialize

public static EncryptionData deserialize(String inputData)

Parameters:

inputData

deserializeKeyWrappingMetadata

public static HashMap deserializeKeyWrappingMetadata(JsonParser parser)

Parameters:

parser

getContentEncryptionIV

public byte [] getContentEncryptionIV()

Gets the content encryption IV.

Returns:

The content encryption IV.

getEncryptionAgent

public EncryptionAgent getEncryptionAgent()

Gets the encryption agent that is used to identify the encryption protocol version and encryption algorithm.

Returns:

The encryption agent.

getKeyWrappingMetadata

public HashMap getKeyWrappingMetadata()

Gets the metadata for encryption.

Returns:

A HashMap containing the encryption metadata in a key-value format.

getWrappedContentKey

public WrappedContentKey getWrappedContentKey()

Gets the wrapped key that is used to store the wrapping algorithm, key identifier and the encrypted key bytes.

Returns:

A WrappedContentKey object that stores the wrapping algorithm, key identifier and the encrypted key bytes.

serialize

public String serialize()

serialize

public void serialize(JsonGenerator generator)

Parameters:

generator

setContentEncryptionIV

public void setContentEncryptionIV(byte[] contentEncryptionIV)

Sets the content encryption IV.

Parameters:

contentEncryptionIV - The content encryption IV.

setEncryptionAgent

public void setEncryptionAgent(EncryptionAgent encryptionAgent)

Sets the encryption agent that is used to identify the encryption protocol version and encryption algorithm.

Parameters:

encryptionAgent - The encryption agent.

setKeyWrappingMetadata

public void setKeyWrappingMetadata(HashMap keyWrappingMetadata)

Sets the metadata for encryption.

Parameters:

keyWrappingMetadata - A HashMap containing the encryption metadata in a key-value format.

setWrappedContentKey

public void setWrappedContentKey(WrappedContentKey wrappedContentKey)

Sets the wrapped key that is used to store the wrapping algorithm, key identifier and the encrypted key bytes.

Parameters:

wrappedContentKey - A WrappedContentKey object that stores the wrapping algorithm, key identifier and the encrypted key bytes.

Applies to