Class ExportedKeyData.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.ExportedKeyData.Builder
-
- Enclosing class:
- ExportedKeyData
public static class ExportedKeyData.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportedKeyData.Builder
algorithm(ExportedKeyData.Algorithm algorithm)
The encryption algorithm to use to encrypt exportable key material from a key that persists on the server (as opposed to a key that persists on a hardware security module and, therefore, cannot be exported).ExportedKeyData
build()
ExportedKeyData.Builder
copy(ExportedKeyData model)
ExportedKeyData.Builder
encryptedKey(String encryptedKey)
The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.ExportedKeyData.Builder
keyId(String keyId)
The OCID of the master encryption key associated with this key version.ExportedKeyData.Builder
keyVersionId(String keyVersionId)
The OCID of the key version.ExportedKeyData.Builder
timeCreated(Date timeCreated)
The date and time this key version was created, expressed in RFC 3339 timestamp format.ExportedKeyData.Builder
vaultId(String vaultId)
The OCID of the vault that contains this key version.
-
-
-
Method Detail
-
keyVersionId
public ExportedKeyData.Builder keyVersionId(String keyVersionId)
The OCID of the key version.- Parameters:
keyVersionId
- the value to set- Returns:
- this builder
-
keyId
public ExportedKeyData.Builder keyId(String keyId)
The OCID of the master encryption key associated with this key version.- Parameters:
keyId
- the value to set- Returns:
- this builder
-
timeCreated
public ExportedKeyData.Builder timeCreated(Date timeCreated)
The date and time this key version was created, expressed in RFC 3339 timestamp format.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
vaultId
public ExportedKeyData.Builder vaultId(String vaultId)
The OCID of the vault that contains this key version.- Parameters:
vaultId
- the value to set- Returns:
- this builder
-
encryptedKey
public ExportedKeyData.Builder encryptedKey(String encryptedKey)
The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.- Parameters:
encryptedKey
- the value to set- Returns:
- this builder
-
algorithm
public ExportedKeyData.Builder algorithm(ExportedKeyData.Algorithm algorithm)
The encryption algorithm to use to encrypt exportable key material from a key that persists on the server (as opposed to a key that persists on a hardware security module and, therefore, cannot be exported).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 exportable key material is wrapped by the RSA public wrapping key provided along with the request.
- Parameters:
algorithm
- the value to set- Returns:
- this builder
-
build
public ExportedKeyData build()
-
copy
public ExportedKeyData.Builder copy(ExportedKeyData model)
-
-