AmazonS3EncryptionClient
for further details.@Deprecated
public class EncryptionMaterials
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EncryptionMaterials(java.security.KeyPair keyPair)
Deprecated.
Constructs a new EncryptionMaterials object, storing an asymmetric key pair.
|
EncryptionMaterials(javax.crypto.SecretKey symmetricKey)
Deprecated.
Constructs a new EncryptionMaterials object, storing a symmetric key.
|
Modifier and Type | Method and Description |
---|---|
EncryptionMaterials |
addDescription(java.lang.String name,
java.lang.String value)
Deprecated.
Fluent API to add material description.
|
EncryptionMaterials |
addDescriptions(java.util.Map<java.lang.String,java.lang.String> descriptions)
Deprecated.
Fluent API to add all the given material descriptions.
|
EncryptionMaterialsAccessor |
getAccessor()
Deprecated.
Returns null since the EncryptionMaterials base class does not have a materials accessor.
|
java.lang.String |
getCustomerMasterKeyId()
Deprecated.
|
java.security.KeyPair |
getKeyPair()
Deprecated.
Returns the key pair stored in this EncryptionMaterials object.
|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialsDescription()
Deprecated.
Returns a snapshot of the current material description; never null.
|
javax.crypto.SecretKey |
getSymmetricKey()
Deprecated.
Returns the symmetric key stored in this EncryptionMaterials object.
|
boolean |
isKMSEnabled()
Deprecated.
Returns true if this is a KMS material description; false otherwise.
|
public EncryptionMaterials(java.security.KeyPair keyPair)
keyPair
- The asymmetric key pair to be stored in this EncryptionMaterials object.public EncryptionMaterials(javax.crypto.SecretKey symmetricKey)
symmetricKey
- The symmetric key to be stored in this EncryptionMaterials object.public java.security.KeyPair getKeyPair()
public javax.crypto.SecretKey getSymmetricKey()
public java.util.Map<java.lang.String,java.lang.String> getMaterialsDescription()
public EncryptionMaterialsAccessor getAccessor()
public EncryptionMaterials addDescription(java.lang.String name, java.lang.String value)
public EncryptionMaterials addDescriptions(java.util.Map<java.lang.String,java.lang.String> descriptions)
public boolean isKMSEnabled()
public java.lang.String getCustomerMasterKeyId()
java.lang.UnsupportedOperationException
- by defaultCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.