AmazonS3EncryptionClient
for further details.@Deprecated
public class EncryptionInstruction
extends java.lang.Object
Constructor and Description |
---|
EncryptionInstruction(java.util.Map<java.lang.String,java.lang.String> materialsDescription,
byte[] encryptedSymmetricKey,
javax.crypto.SecretKey symmetricKey,
javax.crypto.Cipher symmetricCipher)
Deprecated.
Construct a new EncryptionInstruction object with the provided fields.
|
EncryptionInstruction(java.util.Map<java.lang.String,java.lang.String> materialsDescription,
byte[] encryptedSymmetricKey,
javax.crypto.SecretKey symmetricKey,
CipherFactory symmetricCipherFactory)
Deprecated.
Construct a new EncryptionInstruction object with the provided fields.
|
Modifier and Type | Method and Description |
---|---|
CipherFactory |
getCipherFactory()
Deprecated.
|
byte[] |
getEncryptedSymmetricKey()
Deprecated.
Returns an array of bytes representing the encrypted envelope symmetric
key.
|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialsDescription()
Deprecated.
Returns the description of the encryption materials that were used to
encrypt the envelope symmetric key.
|
javax.crypto.Cipher |
getSymmetricCipher()
Deprecated.
Returns the symmetric cipher created with the envelope symmetric key.
|
public EncryptionInstruction(java.util.Map<java.lang.String,java.lang.String> materialsDescription, byte[] encryptedSymmetricKey, javax.crypto.SecretKey symmetricKey, javax.crypto.Cipher symmetricCipher)
materialsDescription
- The description of the encryption materials
that were used to encrypt the envelope symmetric key.encryptedSymmetricKey
- A byte[] array representing an encrypted
envelope symmetric key.symmetricKey
- The symmetric key used to create the cipher that will
encrypt the object data.symmetricCipher
- The symmetric cipher that will encrypt the object
data.public EncryptionInstruction(java.util.Map<java.lang.String,java.lang.String> materialsDescription, byte[] encryptedSymmetricKey, javax.crypto.SecretKey symmetricKey, CipherFactory symmetricCipherFactory)
materialsDescription
- The description of the encryption materials
that were used to encrypt the envelope symmetric key.encryptedSymmetricKey
- A byte[] array representing an encrypted
envelope symmetric key.symmetricKey
- The symmetric key used to create the cipher that will
encrypt the object data.symmetricCipherFactory
- The symmetric cipher factory that will
encrypt the object data.public CipherFactory getCipherFactory()
public java.util.Map<java.lang.String,java.lang.String> getMaterialsDescription()
public byte[] getEncryptedSymmetricKey()
public javax.crypto.Cipher getSymmetricCipher()