public class EncryptionInstruction extends Object
Constructor and Description |
---|
EncryptionInstruction(Map<String,String> materialsDescription,
byte[] encryptedSymmetricKey,
SecretKey symmetricKey,
Cipher symmetricCipher)
Construct a new EncryptionInstruction object with the provided fields.
|
EncryptionInstruction(Map<String,String> materialsDescription,
byte[] encryptedSymmetricKey,
SecretKey symmetricKey,
CipherFactory symmetricCipherFactory) |
Modifier and Type | Method and Description |
---|---|
CipherFactory |
getCipherFactory() |
byte[] |
getEncryptedSymmetricKey()
Returns an array of bytes representing the encrypted envelope symmetric key.
|
Map<String,String> |
getMaterialsDescription()
Returns the description of the encryption materials that were used to encrypt the envelope symmetric key.
|
Cipher |
getSymmetricCipher()
Returns the symmetric cipher created with the envelope symmetric key.
|
SecretKey |
getSymmetricKey()
Returns the envelope symmetric key.
|
public EncryptionInstruction(Map<String,String> materialsDescription, byte[] encryptedSymmetricKey, SecretKey symmetricKey, 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(Map<String,String> materialsDescription, byte[] encryptedSymmetricKey, SecretKey symmetricKey, CipherFactory symmetricCipherFactory)
public CipherFactory getCipherFactory()
public Map<String,String> getMaterialsDescription()
public byte[] getEncryptedSymmetricKey()
public SecretKey getSymmetricKey()
public Cipher getSymmetricCipher()
Copyright © 2016. All rights reserved.