public class EncryptionMaterials extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public EncryptionMaterials(KeyPair keyPair)
keyPair
- The asymmetric key pair to be stored in this EncryptionMaterials object.public EncryptionMaterials(SecretKey symmetricKey)
symmetricKey
- The symmetric key to be stored in this EncryptionMaterials object.public KeyPair getKeyPair()
public SecretKey getSymmetricKey()
public Map<String,String> getMaterialsDescription()
public EncryptionMaterialsAccessor getAccessor()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.