Class ExportedKeyData


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: release")
    public final class ExportedKeyData
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The response to a request to export key material.
    Note: Objects should always be created or deserialized using the ExportedKeyData.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the ExportedKeyData.Builder, which maintain a set of all explicitly set fields called ExportedKeyData.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getKeyVersionId

        public String getKeyVersionId()
        The OCID of the key version.
        Returns:
        the value
      • getKeyId

        public String getKeyId()
        The OCID of the master encryption key associated with this key version.
        Returns:
        the value
      • getTimeCreated

        public Date getTimeCreated()
        The date and time this key version was created, expressed in RFC 3339 timestamp format.
        Returns:
        the value
      • getVaultId

        public String getVaultId()
        The OCID of the vault that contains this key version.
        Returns:
        the value
      • getEncryptedKey

        public String getEncryptedKey()
        The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.
        Returns:
        the value
      • getAlgorithm

        public ExportedKeyData.Algorithm getAlgorithm()
        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.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel