@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
).
Modifier and Type | Class and 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 |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ExportedKeyData(String keyVersionId,
String keyId,
Date timeCreated,
String vaultId,
String encryptedKey,
ExportedKeyData.Algorithm algorithm)
Deprecated.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"keyVersionId","keyId","timeCreated","vaultId","encryptedKey","algorithm"}) public ExportedKeyData(String keyVersionId, String keyId, Date timeCreated, String vaultId, String encryptedKey, ExportedKeyData.Algorithm algorithm)
public static ExportedKeyData.Builder builder()
Create a new builder.
public ExportedKeyData.Builder toBuilder()
public String getKeyVersionId()
The OCID of the key version.
public String getKeyId()
The OCID of the master encryption key associated with this key version.
public Date getTimeCreated()
The date and time this key version was created, expressed in RFC 3339 timestamp format.
public String getVaultId()
The OCID of the vault that contains this key version.
public String getEncryptedKey()
The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.