Class ExportedKeyData
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.keymanagement.model.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 theExportedKeyData.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 theExportedKeyData.Builder
, which maintain a set of all explicitly set fields calledExportedKeyData.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExportedKeyData.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).static class
ExportedKeyData.Builder
-
Constructor Summary
Constructors Constructor Description ExportedKeyData(String keyVersionId, String keyId, Date timeCreated, String vaultId, String encryptedKey, ExportedKeyData.Algorithm algorithm)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExportedKeyData.Builder
builder()
Create a new builder.boolean
equals(Object o)
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).String
getEncryptedKey()
The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.String
getKeyId()
The OCID of the master encryption key associated with this key version.String
getKeyVersionId()
The OCID of the key version.Date
getTimeCreated()
The date and time this key version was created, expressed in RFC 3339 timestamp format.String
getVaultId()
The OCID of the vault that contains this key version.int
hashCode()
ExportedKeyData.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ExportedKeyData
@Deprecated @ConstructorProperties({"keyVersionId","keyId","timeCreated","vaultId","encryptedKey","algorithm"}) public ExportedKeyData(String keyVersionId, String keyId, Date timeCreated, String vaultId, String encryptedKey, ExportedKeyData.Algorithm algorithm)
Deprecated.
-
-
Method Detail
-
builder
public static ExportedKeyData.Builder builder()
Create a new builder.
-
toBuilder
public ExportedKeyData.Builder toBuilder()
-
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 classcom.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 classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-