M
- the type of MasterKey
used to protect this DataKey
.public class DataKey<M extends MasterKey<M>> extends Object implements EncryptedDataKey
Constructor and Description |
---|
DataKey(SecretKey key,
byte[] encryptedDataKey,
byte[] providerInformation,
M masterKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncryptedDataKey() |
SecretKey |
getKey()
Returns the cleartext bytes of the data key.
|
M |
getMasterKey()
|
String |
getProviderId() |
byte[] |
getProviderInformation() |
public SecretKey getKey()
public String getProviderId()
getProviderId
in interface EncryptedDataKey
public byte[] getProviderInformation()
getProviderInformation
in interface EncryptedDataKey
public byte[] getEncryptedDataKey()
getEncryptedDataKey
in interface EncryptedDataKey
public M getMasterKey()
Copyright © 2023. All rights reserved.