com.amazonaws.services.s3.internal.crypto
Class EncryptionInstruction

java.lang.Object
  extended by com.amazonaws.services.s3.internal.crypto.EncryptionInstruction

public class EncryptionInstruction
extends Object

Contains information used to encrypt and decrypt objects in S3.


Constructor Summary
EncryptionInstruction(Map<String,String> materialsDescription, byte[] encryptedSymmetricKey, SecretKey symmetricKey, Cipher symmetricCipher)
          Construct a new EncryptionInstruction object with the provided fields.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionInstruction

public EncryptionInstruction(Map<String,String> materialsDescription,
                             byte[] encryptedSymmetricKey,
                             SecretKey symmetricKey,
                             Cipher symmetricCipher)
Construct a new EncryptionInstruction object with the provided fields.

Parameters:
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.
Method Detail

getMaterialsDescription

public Map<String,String> getMaterialsDescription()
Returns the description of the encryption materials that were used to encrypt the envelope symmetric key.

Returns:
the description of the encryption materials that were used to encrypt the envelope symmetric key.

getEncryptedSymmetricKey

public byte[] getEncryptedSymmetricKey()
Returns an array of bytes representing the encrypted envelope symmetric key.

Returns:
an array of bytes representing the encrypted envelope symmetric key.

getSymmetricKey

public SecretKey getSymmetricKey()
Returns the envelope symmetric key.

Returns:
the envelope symmetric key.

getSymmetricCipher

public Cipher getSymmetricCipher()
Returns the symmetric cipher created with the envelope symmetric key.

Returns:
the symmetric cipher created with the envelope symmetric key.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.