com.amazonaws.services.s3.model
Class EncryptionMaterials

java.lang.Object
  extended by com.amazonaws.services.s3.model.EncryptionMaterials

public class EncryptionMaterials
extends Object

Stores materials to be used in encryption. These materials may be either an asymmetric key pair or a symmetric key but not both.


Constructor Summary
EncryptionMaterials(KeyPair keyPair)
          Constructs a new EncryptionMaterials object, storing an asymmetric key pair.
EncryptionMaterials(SecretKey symmetricKey)
          Constructs a new EncryptionMaterials object, storing a symmetric key.
 
Method Summary
 EncryptionMaterialsAccessor getAccessor()
          Returns null since the EncryptionMaterials base class does not have a materials accessor.
 KeyPair getKeyPair()
          Returns the key pair stored in this EncryptionMaterials object.
 Map<String,String> getMaterialsDescription()
          Returns an empty map since the EncryptionMaterials base class does not have extra materials information.
 SecretKey getSymmetricKey()
          Returns the symmetric key stored in this EncryptionMaterials object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionMaterials

public EncryptionMaterials(KeyPair keyPair)
Constructs a new EncryptionMaterials object, storing an asymmetric key pair.

Parameters:
keyPair - The asymmetric key pair to be stored in this EncryptionMaterials object.

EncryptionMaterials

public EncryptionMaterials(SecretKey symmetricKey)
Constructs a new EncryptionMaterials object, storing a symmetric key.

Parameters:
symmetricKey - The symmetric key to be stored in this EncryptionMaterials object.
Method Detail

getKeyPair

public KeyPair getKeyPair()
Returns the key pair stored in this EncryptionMaterials object.

Returns:
the key pair stored in this EncryptionMaterials object.

getSymmetricKey

public SecretKey getSymmetricKey()
Returns the symmetric key stored in this EncryptionMaterials object.

Returns:
the symmetric key stored in this EncryptionMaterials object.

getMaterialsDescription

public Map<String,String> getMaterialsDescription()
Returns an empty map since the EncryptionMaterials base class does not have extra materials information. Subclasses may override this method.

Returns:
an empty map

getAccessor

public EncryptionMaterialsAccessor getAccessor()
Returns null since the EncryptionMaterials base class does not have a materials accessor. Subclasses may override this method.

Returns:
null


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