public static class ExportKeyDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public ExportKeyDetails.Builder keyId(String keyId)
The OCID of the master encryption key associated with the key version you want to export.
keyId
- the value to setpublic ExportKeyDetails.Builder keyVersionId(String keyVersionId)
The OCID of the specific key version to export. If not specified, the service exports the current key version.
keyVersionId
- the value to setpublic 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.
algorithm
- the value to setpublic 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.
publicKey
- the value to setpublic 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.
loggingContext
- the value to setpublic ExportKeyDetails build()
public ExportKeyDetails.Builder copy(ExportKeyDetails model)
Copyright © 2016–2024. All rights reserved.