public static class GenerateKeyDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GenerateKeyDetails.Builder |
associatedData(Map<String,String> associatedData)
Information that can be used to provide an encryption context for the encrypted data.
|
GenerateKeyDetails |
build() |
GenerateKeyDetails.Builder |
copy(GenerateKeyDetails model) |
GenerateKeyDetails.Builder |
includePlaintextKey(Boolean includePlaintextKey)
If true, the generated key is also returned unencrypted.
|
GenerateKeyDetails.Builder |
keyId(String keyId)
The OCID of the master encryption key to encrypt the generated data encryption key with.
|
GenerateKeyDetails.Builder |
keyShape(KeyShape keyShape) |
GenerateKeyDetails.Builder |
loggingContext(Map<String,String> loggingContext)
Information that provides context for audit logging.
|
public GenerateKeyDetails.Builder associatedData(Map<String,String> associatedData)
Information that can be used to provide an encryption context for the encrypted data. The length of the string representation of the associated data must be fewer than 4096 characters.
associatedData
- the value to setpublic GenerateKeyDetails.Builder includePlaintextKey(Boolean includePlaintextKey)
If true, the generated key is also returned unencrypted.
includePlaintextKey
- the value to setpublic GenerateKeyDetails.Builder keyId(String keyId)
The OCID of the master encryption key to encrypt the generated data encryption key with.
keyId
- the value to setpublic GenerateKeyDetails.Builder keyShape(KeyShape keyShape)
public GenerateKeyDetails.Builder loggingContext(Map<String,String> loggingContext)
Information that provides context for audit logging. You can provide this additional data by formatting it as key-value pairs to include in audit logs when audit logging is enabled.
loggingContext
- the value to setpublic GenerateKeyDetails build()
public GenerateKeyDetails.Builder copy(GenerateKeyDetails model)
Copyright © 2016–2024. All rights reserved.