Class ExportKeyDetails
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.keymanagement.model.ExportKeyDetails
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: release") public final class ExportKeyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe details of the key that you want to wrap and export.
 Note: Objects should always be created or deserialized using theExportKeyDetails.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 theExportKeyDetails.Builder, which maintain a set of all explicitly set fields calledExportKeyDetails.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 SummaryNested Classes Modifier and Type Class Description static classExportKeyDetails.AlgorithmThe encryption algorithm to use to encrypt exportable key material from a software-backed key.static classExportKeyDetails.Builder
 - 
Constructor SummaryConstructors Constructor Description ExportKeyDetails(String keyId, String keyVersionId, ExportKeyDetails.Algorithm algorithm, String publicKey, Map<String,String> loggingContext)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExportKeyDetails.Builderbuilder()Create a new builder.booleanequals(Object o)ExportKeyDetails.AlgorithmgetAlgorithm()The encryption algorithm to use to encrypt exportable key material from a software-backed key.StringgetKeyId()The OCID of the master encryption key associated with the key version you want to export.StringgetKeyVersionId()The OCID of the specific key version to export.Map<String,String>getLoggingContext()Information that provides context for audit logging.StringgetPublicKey()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.inthashCode()ExportKeyDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
ExportKeyDetails@Deprecated @ConstructorProperties({"keyId","keyVersionId","algorithm","publicKey","loggingContext"}) public ExportKeyDetails(String keyId, String keyVersionId, ExportKeyDetails.Algorithm algorithm, String publicKey, Map<String,String> loggingContext) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ExportKeyDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic ExportKeyDetails.Builder toBuilder() 
 - 
getKeyIdpublic String getKeyId() The OCID of the master encryption key associated with the key version you want to export.- Returns:
- the value
 
 - 
getKeyVersionIdpublic String getKeyVersionId() The OCID of the specific key version to export.If not specified, the service exports the current key version. - Returns:
- the value
 
 - 
getAlgorithmpublic 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. - Returns:
- the value
 
 - 
getPublicKeypublic 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.- Returns:
- the value
 
 - 
getLoggingContextpublic 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. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-