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
public class DataKey<M extends MasterKey<M>> extends Object implements EncryptedDataKey
Represents both the cleartext and encrypted bytes of a data key.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncryptedDataKey()
SecretKey
getKey()
Returns the cleartext bytes of the data key.M
getMasterKey()
String
getProviderId()
byte[]
getProviderInformation()
-
-
-
Method Detail
-
getKey
public SecretKey getKey()
Returns the cleartext bytes of the data key.
-
getProviderId
public String 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
public M getMasterKey()
-
-