WrappedContentKey Class

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

public class WrappedContentKey

RESERVED FOR INTERNAL USE. Represents the envelope key details stored on the service.

Field Summary

Modifier and Type Field and Description
String algorithm

The algorithm used for wrapping.

byte [] encryptedKey

The encrypted content encryption key.

String keyId

The key identifier string.

Constructor Summary

Constructor Description
WrappedContentKey()

Initializes a new instance of the WrappedContentKey class.

WrappedContentKey(String keyId, byte[] encryptedKey, String algorithm)

Initializes a new instance of the WrappedContentKey class using the specified key id, encrypted key and the algorithm.

Method Summary

Modifier and Type Method and Description
WrappedContentKey deserialize(JsonParser parser)
String getAlgorithm()

Gets the algorithm used for wrapping.

byte [] getEncryptedKey()

Gets the encrypted content encryption key.

String getKeyId()

Gets the key identifier. This identifier is used to identify the key that is used to wrap/unwrap the content encryption key.

void serialize(JsonGenerator generator)
void setAlgorithm(String algorithm)

Sets the algorithm used for wrapping.

void setEncryptedKey(byte[] encryptedKey)

Sets the encrypted content encryption key.

void setKeyId(String keyId)

Sets the key identifier. This identifier is used to identify the key that is used to wrap/unwrap the content encryption key.

Field Details

algorithm

public String algorithm

The algorithm used for wrapping.

encryptedKey

public byte [] encryptedKey

The encrypted content encryption key.

keyId

public String keyId

The key identifier string.

Constructor Details

WrappedContentKey

public WrappedContentKey()

Initializes a new instance of the WrappedContentKey class.

WrappedContentKey

public WrappedContentKey(String keyId, byte[] encryptedKey, String algorithm)

Initializes a new instance of the WrappedContentKey class using the specified key id, encrypted key and the algorithm.

Parameters:

keyId - The key identifier string.
encryptedKey - The encrypted content encryption key.
algorithm - The algorithm used for wrapping.

Method Details

deserialize

public static WrappedContentKey deserialize(JsonParser parser)

Parameters:

parser

getAlgorithm

public String getAlgorithm()

Gets the algorithm used for wrapping.

Returns:

The algorithm used for wrapping.

getEncryptedKey

public byte [] getEncryptedKey()

Gets the encrypted content encryption key.

Returns:

The encrypted content encryption key.

getKeyId

public String getKeyId()

Gets the key identifier. This identifier is used to identify the key that is used to wrap/unwrap the content encryption key.

Returns:

The key identifier string.

serialize

public void serialize(JsonGenerator generator)

Parameters:

generator

setAlgorithm

public void setAlgorithm(String algorithm)

Sets the algorithm used for wrapping.

Parameters:

algorithm - The algorithm used for wrapping.

setEncryptedKey

public void setEncryptedKey(byte[] encryptedKey)

Sets the encrypted content encryption key.

Parameters:

encryptedKey - The encrypted content encryption key.

setKeyId

public void setKeyId(String keyId)

Sets the key identifier. This identifier is used to identify the key that is used to wrap/unwrap the content encryption key.

Parameters:

keyId - The key identifier string.

Applies to