public class EncryptionMaterials
extends java.lang.Object
implements java.io.Serializable
限定符 | 构造器和说明 |
---|---|
|
EncryptionMaterials(java.security.KeyPair keyPair)
Constructs a new EncryptionMaterials object, storing an asymmetric key pair.
|
protected |
EncryptionMaterials(java.security.KeyPair keyPair,
javax.crypto.SecretKey symmetricKey)
Base constructor for the EncryptionMaterials object.
|
|
EncryptionMaterials(javax.crypto.SecretKey symmetricKey)
Constructs a new EncryptionMaterials object, storing a symmetric key.
|
限定符和类型 | 方法和说明 |
---|---|
EncryptionMaterials |
addDescription(java.lang.String name,
java.lang.String value)
Fluent API to add material description.
|
EncryptionMaterials |
addDescriptions(java.util.Map<java.lang.String,java.lang.String> descriptions)
Fluent API to add all the given material descriptions.
|
EncryptionMaterialsAccessor |
getAccessor()
Returns null since the EncryptionMaterials base class does not have a materials accessor.
|
java.lang.String |
getCustomerMasterKeyId() |
protected java.lang.String |
getDescription(java.lang.String name) |
java.security.KeyPair |
getKeyPair()
Returns the key pair stored in this EncryptionMaterials object.
|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialsDescription()
Returns a snapshot of the current material description; never null.
|
javax.crypto.SecretKey |
getSymmetricKey()
Returns the symmetric key stored in this EncryptionMaterials object.
|
boolean |
isKMSEnabled()
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.protected EncryptionMaterials(java.security.KeyPair keyPair, javax.crypto.SecretKey symmetricKey)
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 defaultprotected java.lang.String getDescription(java.lang.String name)