Class GenerateKeyDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • associatedData

        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.

        Parameters:
        associatedData - the value to set
        Returns:
        this builder
      • includePlaintextKey

        public GenerateKeyDetails.Builder includePlaintextKey​(Boolean includePlaintextKey)
        If true, the generated key is also returned unencrypted.
        Parameters:
        includePlaintextKey - the value to set
        Returns:
        this builder
      • keyId

        public GenerateKeyDetails.Builder keyId​(String keyId)
        The OCID of the master encryption key to encrypt the generated data encryption key with.
        Parameters:
        keyId - the value to set
        Returns:
        this builder
      • loggingContext

        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.

        Parameters:
        loggingContext - the value to set
        Returns:
        this builder