public class WrappedContentKey extends Object
| 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 and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
static WrappedContentKey | 
deserialize(com.fasterxml.jackson.core.JsonParser parser)  | 
String | 
getAlgorithm()
Gets the algorithm used for wrapping. 
 | 
byte[] | 
getEncryptedKey()
Gets the encrypted content encryption key. 
 | 
String | 
getKeyId()
Gets the key identifier. 
 | 
void | 
serialize(com.fasterxml.jackson.core.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. 
 | 
public String algorithm
public byte[] encryptedKey
public String keyId
public WrappedContentKey()
WrappedContentKey class.public WrappedContentKey(String keyId, byte[] encryptedKey, String algorithm)
WrappedContentKey class using the specified key id, encrypted key and
 the algorithm.keyId - The key identifier string.encryptedKey - The encrypted content encryption key.algorithm - The algorithm used for wrapping.public String getAlgorithm()
public byte[] getEncryptedKey()
public String getKeyId()
public void setAlgorithm(String algorithm)
algorithm - The algorithm used for wrapping.public void setEncryptedKey(byte[] encryptedKey)
encryptedKey - The encrypted content encryption key.public void setKeyId(String keyId)
keyId - The key identifier string.public void serialize(com.fasterxml.jackson.core.JsonGenerator generator)
               throws IOException
IOExceptionpublic static WrappedContentKey deserialize(com.fasterxml.jackson.core.JsonParser parser) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseExceptionIOExceptionCopyright © 2019. All rights reserved.