public class KmsMasterKeyProvider extends Object implements MasterKeyProvider
Represents a KmsMasterKeyProvider that holds KmsMasterKeys.
Constructor and Description |
---|
KmsMasterKeyProvider(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Initialize KmsMasterKeyProvider for decryption.
|
KmsMasterKeyProvider(KmsMasterKey kmsMasterKey)
Initialize KmsMasterKeyProvider with kmsMasterKey for encryption.
|
Modifier and Type | Method and Description |
---|---|
BasicAuthenticationDetailsProvider |
getAuthenticationProvider()
Get Authentication Details Provider.
|
CryptoAlgorithm |
getCryptoAlgorithm()
Get Crypto Algorithm.
|
KmsMasterKey |
getMasterKey()
Get kmsMasterKey.
|
public KmsMasterKeyProvider(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Initialize KmsMasterKeyProvider for decryption.
authenticationDetailsProvider
- Authentication Provider for OCI.public KmsMasterKeyProvider(KmsMasterKey kmsMasterKey)
Initialize KmsMasterKeyProvider with kmsMasterKey for encryption.
kmsMasterKey
- OCI KMS Key.public KmsMasterKey getMasterKey()
Get kmsMasterKey.
getMasterKey
in interface MasterKeyProvider
public BasicAuthenticationDetailsProvider getAuthenticationProvider()
Get Authentication Details Provider.
getAuthenticationProvider
in interface MasterKeyProvider
public CryptoAlgorithm getCryptoAlgorithm()
Get Crypto Algorithm. The default is AES_256_GCM_IV12_TAG16
getCryptoAlgorithm
in interface MasterKeyProvider
Copyright © 2016–2024. All rights reserved.