Class ExportKeyDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • keyId

        public ExportKeyDetails.Builder keyId​(String keyId)
        The OCID of the master encryption key associated with the key version you want to export.
        Parameters:
        keyId - the value to set
        Returns:
        this builder
      • keyVersionId

        public ExportKeyDetails.Builder keyVersionId​(String keyVersionId)
        The OCID of the specific key version to export.

        If not specified, the service exports the current key version.

        Parameters:
        keyVersionId - the value to set
        Returns:
        this builder
      • algorithm

        public 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.

        Parameters:
        algorithm - the value to set
        Returns:
        this builder
      • publicKey

        public 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.
        Parameters:
        publicKey - the value to set
        Returns:
        this builder
      • loggingContext

        public 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.

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