Package com.amazonaws.encryptionsdk
Class DataKey<M extends MasterKey<M>>
java.lang.Object
com.amazonaws.encryptionsdk.DataKey<M>
- Type Parameters:
M
- the type ofMasterKey
used to protect thisDataKey
.
- All Implemented Interfaces:
EncryptedDataKey
Represents both the cleartext and encrypted bytes of a data key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getKey()
Returns the cleartext bytes of the data key.byte[]
-
Constructor Details
-
DataKey
-
-
Method Details
-
getKey
Returns the cleartext bytes of the data key. -
getProviderId
- Specified by:
getProviderId
in interfaceEncryptedDataKey
-
getProviderInformation
public byte[] getProviderInformation()- Specified by:
getProviderInformation
in interfaceEncryptedDataKey
-
getEncryptedDataKey
public byte[] getEncryptedDataKey()- Specified by:
getEncryptedDataKey
in interfaceEncryptedDataKey
-
getMasterKey
-