@Generated(value="OracleSDKGenerator", comments="API Version: release") public final class SignedData extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The response to a request to sign the message.
Note: Objects should always be created or deserialized using the SignedData.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 SignedData.Builder
, which maintain a
set of all explicitly set fields called SignedData.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 |
SignedData.Builder |
static class |
SignedData.SigningAlgorithm
The algorithm to use to sign the message or message digest.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SignedData(String keyId,
String keyVersionId,
String signature,
SignedData.SigningAlgorithm signingAlgorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SignedData.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getKeyId()
The OCID of the key used to sign the message.
|
String |
getKeyVersionId()
The OCID of the key version used to sign the message.
|
String |
getSignature()
The base64-encoded binary data object denoting the cryptographic signature generated for the
message or message digest.
|
SignedData.SigningAlgorithm |
getSigningAlgorithm()
The algorithm to use to sign the message or message digest.
|
int |
hashCode() |
SignedData.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"keyId","keyVersionId","signature","signingAlgorithm"}) public SignedData(String keyId, String keyVersionId, String signature, SignedData.SigningAlgorithm signingAlgorithm)
public static SignedData.Builder builder()
Create a new builder.
public SignedData.Builder toBuilder()
public String getKeyId()
The OCID of the key used to sign the message.
public String getKeyVersionId()
The OCID of the key version used to sign the message.
public String getSignature()
The base64-encoded binary data object denoting the cryptographic signature generated for the message or message digest.
public SignedData.SigningAlgorithm getSigningAlgorithm()
The algorithm to use to sign the message or message digest. For RSA keys, supported signature schemes include PKCS #1 and RSASSA-PSS, along with different hashing algorithms. For ECDSA keys, ECDSA is the supported signature scheme with different hashing algorithms. When you pass a message digest for signing, ensure that you specify the same hashing algorithm as used when creating the message digest.
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.