Class CredentialConfig.Builder
- Enclosing class:
CredentialConfig
CredentialConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the immutable credential configuration.fingerprint(String fingerprint) Sets the OCI public key fingerprint.Sets the password for username/password cloud service credentials.privateKey(String privateKey) Sets the PEM private key material.tenancyOcid(String tenancyOcid) Sets the OCI tenancy OCID.Sets the username for username/password cloud service credentials.Sets the OCI user OCID.
-
Method Details
-
username
Sets the username for username/password cloud service credentials.A blank username is invalid when this configuration is used to create a username/password credential.
- Parameters:
username- cloud service username- Returns:
- this builder instance
-
password
Sets the password for username/password cloud service credentials.The password is optional for
DBMS_CLOUD.CREATE_CREDENTIAL; when not supplied, the SDK passesnullto the database. Supplying a password without a username is invalid when this configuration is used to create a credential.- Parameters:
password- cloud service password- Returns:
- this builder instance
-
userOcid
Sets the OCI user OCID.When this configuration is used to create an OCI signing-key credential, user OCID, tenancy OCID, private key, and fingerprint must all be supplied.
- Parameters:
userOcid- OCI user OCID- Returns:
- this builder instance
-
tenancyOcid
Sets the OCI tenancy OCID.When this configuration is used to create an OCI signing-key credential, user OCID, tenancy OCID, private key, and fingerprint must all be supplied.
- Parameters:
tenancyOcid- OCI tenancy OCID- Returns:
- this builder instance
-
privateKey
Sets the PEM private key material.This value is sensitive. Do not log, persist, or expose it in diagnostics. When this configuration is used to create an OCI signing-key credential, user OCID, tenancy OCID, private key, and fingerprint must all be supplied.
- Parameters:
privateKey- private key material- Returns:
- this builder instance
-
fingerprint
Sets the OCI public key fingerprint.When this configuration is used to create an OCI signing-key credential, user OCID, tenancy OCID, private key, and fingerprint must all be supplied.
- Parameters:
fingerprint- OCI API key fingerprint- Returns:
- this builder instance
-
build
Builds the immutable credential configuration.This method validates only the credential name supplied to
CredentialConfig.builder(String). Complete create-time validation is performed byCredential.create()so name-only configurations remain usable for credential references and drop operations.- Returns:
- immutable CredentialConfig assembled from current builder state
-