Class ExportedKeyData.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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