@Generated(value="OracleSDKGenerator", comments="API Version: release") public final class ExportKeyDetails extends Object
The details of the key that you want to wrap and export.
Note: Objects should always be created or deserialized using the ExportKeyDetails.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 ExportKeyDetails.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ExportKeyDetails.Algorithm
The encryption algorithm to use to encrypt exportable key material from a software-backed key.
|
static class |
ExportKeyDetails.Builder |
Constructor and Description |
---|
ExportKeyDetails(String keyId,
String keyVersionId,
ExportKeyDetails.Algorithm algorithm,
String publicKey,
Map<String,String> loggingContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ExportKeyDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
ExportKeyDetails.Algorithm |
getAlgorithm()
The encryption algorithm to use to encrypt exportable key material from a software-backed key.
|
String |
getKeyId()
The OCID of the master encryption key associated with the key version you want to export.
|
String |
getKeyVersionId()
The OCID of the specific key version to export.
|
Map<String,String> |
getLoggingContext()
Information that provides context for audit logging.
|
String |
getPublicKey()
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.
|
int |
hashCode() |
ExportKeyDetails.Builder |
toBuilder() |
String |
toString() |
@Deprecated @ConstructorProperties(value={"keyId","keyVersionId","algorithm","publicKey","loggingContext"}) public ExportKeyDetails(String keyId, String keyVersionId, ExportKeyDetails.Algorithm algorithm, String publicKey, Map<String,String> loggingContext)
public static ExportKeyDetails.Builder builder()
Create a new builder.
public ExportKeyDetails.Builder toBuilder()
public String getKeyId()
The OCID of the master encryption key associated with the key version you want to export.
public String getKeyVersionId()
The OCID of the specific key version to export. If not specified, the service exports the current key version.
public ExportKeyDetails.Algorithm getAlgorithm()
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.
public String getPublicKey()
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.
public Map<String,String> getLoggingContext()
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.
Copyright © 2016–2022. All rights reserved.