Class OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
- java.lang.Object
-
- io.helidon.integrations.oci.vault.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
-
- All Implemented Interfaces:
Builder<OciVaultSecurityProvider.OciVaultEncryptionConfig>
,Supplier<OciVaultSecurityProvider.OciVaultEncryptionConfig>
- Enclosing class:
- OciVaultSecurityProvider.OciVaultEncryptionConfig
public static class OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder extends Object implements Builder<OciVaultSecurityProvider.OciVaultEncryptionConfig>
Fluent API builder forOciVaultSecurityProvider.OciVaultEncryptionConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
algorithm(String algorithm)
Algorithm to use for encryption.OciVaultSecurityProvider.OciVaultEncryptionConfig
build()
Build the instance from this builder.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
config(Config config)
Update this builder from configuration.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
context(String context)
Contextual data.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
cryptographicEndpoint(String endpoint)
Configure the cryptographic endpoint to use.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
keyId(String keyId)
OCID of the key to use for encryption.OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder
keyVersionId(String keyVersionId)
OCID of the key version.
-
-
-
Method Detail
-
build
public OciVaultSecurityProvider.OciVaultEncryptionConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<OciVaultSecurityProvider.OciVaultEncryptionConfig>
- Returns:
- instance of the built type
-
config
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder config(Config config)
Update this builder from configuration. Configuration options:Secret configuration key description builder method key-ocid
OCID of the vault key to use for encryption keyId(String)
key-version-ocid
OCID of the key version keyVersionId(String)
algorithm
Encryption algorithm algorithm(String)
cryptographic-endpoint
Cryptographic endpoint to use for encryption (available in console) cryptographicEndpoint(String)
context
Contextual data context(String)
- Parameters:
config
- config to use- Returns:
- updated builder
-
cryptographicEndpoint
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder cryptographicEndpoint(String endpoint)
Configure the cryptographic endpoint to use.- Parameters:
endpoint
- crypto endpoint- Returns:
- updated builder
-
keyId
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder keyId(String keyId)
OCID of the key to use for encryption.- Parameters:
keyId
- OCID of the key- Returns:
- updated builder
- See Also:
Encrypt.Request.keyId(String)
,Decrypt.Request.keyId(String)
-
keyVersionId
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder keyVersionId(String keyVersionId)
OCID of the key version.- Parameters:
keyVersionId
- version OCID- Returns:
- updated builder
- See Also:
Encrypt.Request.keyVersionId(String)
,Decrypt.Request.keyVersionId(String)
-
algorithm
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder algorithm(String algorithm)
Algorithm to use for encryption.- Parameters:
algorithm
- algorithm- Returns:
- updated builder
- See Also:
Encrypt.Request.algorithm(String)
,Decrypt.Request.algorithm(String)
-
context
public OciVaultSecurityProvider.OciVaultEncryptionConfig.Builder context(String context)
Contextual data.- Parameters:
context
- context- Returns:
- updated builder
- See Also:
Encrypt.Request.context(String)
,Decrypt.Request.context(String)
-
-