WrappedContentKey Class
- java.
lang. Object - com.
microsoft. azure. storage. core. WrappedContentKey
- com.
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 |
---|---|
Wrapped |
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:
Method Details
deserialize
public static WrappedContentKey deserialize(JsonParser parser)
Parameters:
getAlgorithm
public String getAlgorithm()
Gets the algorithm used for wrapping.
Returns:
getEncryptedKey
public byte [] getEncryptedKey()
Gets the encrypted content encryption key.
Returns:
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:
serialize
public void serialize(JsonGenerator generator)
Parameters:
setAlgorithm
public void setAlgorithm(String algorithm)
Sets the algorithm used for wrapping.
Parameters:
setEncryptedKey
public void setEncryptedKey(byte[] encryptedKey)
Sets the encrypted content encryption key.
Parameters:
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:
Applies to
Azure SDK for Java