Class ExportKeyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.ExportKeyDetails.Builder
-
- Enclosing class:
- ExportKeyDetails
public static class ExportKeyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportKeyDetails.Builder
algorithm(ExportKeyDetails.Algorithm algorithm)
The encryption algorithm to use to encrypt exportable key material from a software-backed key.ExportKeyDetails
build()
ExportKeyDetails.Builder
copy(ExportKeyDetails model)
ExportKeyDetails.Builder
keyId(String keyId)
The OCID of the master encryption key associated with the key version you want to export.ExportKeyDetails.Builder
keyVersionId(String keyVersionId)
The OCID of the specific key version to export.ExportKeyDetails.Builder
loggingContext(Map<String,String> loggingContext)
Information that provides context for audit logging.ExportKeyDetails.Builder
publicKey(String publicKey)
The PEM format of the 2048-bit, 3072-bit, or 4096-bit RSA wrapping key in your possession that you want to use to encrypt the key.
-
-
-
Method Detail
-
keyId
public ExportKeyDetails.Builder keyId(String keyId)
The OCID of the master encryption key associated with the key version you want to export.- Parameters:
keyId
- the value to set- Returns:
- this builder
-
keyVersionId
public ExportKeyDetails.Builder keyVersionId(String keyVersionId)
The OCID of the specific key version to export.If not specified, the service exports the current key version.
- Parameters:
keyVersionId
- the value to set- Returns:
- this builder
-
algorithm
public ExportKeyDetails.Builder algorithm(ExportKeyDetails.Algorithm algorithm)
The encryption algorithm to use to encrypt exportable key material from a software-backed key.Specifying RSA_OAEP_AES_SHA256 invokes the RSA AES key wrap mechanism, which generates a temporary AES key. The temporary AES key is wrapped by the RSA public wrapping key provided along with the request, creating a wrapped temporary AES key. The temporary AES key is also used to wrap the exportable key material. The wrapped temporary AES key and the wrapped exportable key material are concatenated, producing concatenated blob output that jointly represents them. Specifying RSA_OAEP_SHA256 means that the software key is wrapped by the RSA public wrapping key provided along with the request.
- Parameters:
algorithm
- the value to set- Returns:
- this builder
-
publicKey
public ExportKeyDetails.Builder publicKey(String publicKey)
The PEM format of the 2048-bit, 3072-bit, or 4096-bit RSA wrapping key in your possession that you want to use to encrypt the key.- Parameters:
publicKey
- the value to set- Returns:
- this builder
-
loggingContext
public ExportKeyDetails.Builder loggingContext(Map<String,String> loggingContext)
Information that provides context for audit logging.You can provide this additional data as key-value pairs to include in the audit logs when audit logging is enabled.
- Parameters:
loggingContext
- the value to set- Returns:
- this builder
-
build
public ExportKeyDetails build()
-
copy
public ExportKeyDetails.Builder copy(ExportKeyDetails model)
-
-