public static class ExportedKeyData.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public ExportedKeyData.Builder keyVersionId(String keyVersionId)
The OCID of the key version.
keyVersionId
- the value to setpublic ExportedKeyData.Builder keyId(String keyId)
The OCID of the master encryption key associated with this key version.
keyId
- the value to setpublic ExportedKeyData.Builder timeCreated(Date timeCreated)
The date and time this key version was created, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic ExportedKeyData.Builder vaultId(String vaultId)
The OCID of the vault that contains this key version.
vaultId
- the value to setpublic 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.
encryptedKey
- the value to setpublic 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.
algorithm
- the value to setpublic ExportedKeyData build()
public ExportedKeyData.Builder copy(ExportedKeyData model)
Copyright © 2016–2024. All rights reserved.