public static class VerifyDataDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VerifyDataDetails |
build() |
VerifyDataDetails.Builder |
copy(VerifyDataDetails model) |
VerifyDataDetails.Builder |
keyId(String keyId)
The OCID of the key used to sign the message.
|
VerifyDataDetails.Builder |
keyVersionId(String keyVersionId)
The OCID of the key version used to sign the message.
|
VerifyDataDetails.Builder |
message(String message)
The base64-encoded binary data object denoting the message or message digest to sign.
|
VerifyDataDetails.Builder |
messageType(VerifyDataDetails.MessageType messageType)
Denotes whether the value of the message parameter is a raw message or a message digest.
|
VerifyDataDetails.Builder |
signature(String signature)
The base64-encoded binary data object denoting the cryptographic signature generated for
the message.
|
VerifyDataDetails.Builder |
signingAlgorithm(VerifyDataDetails.SigningAlgorithm signingAlgorithm)
The algorithm to use to sign the message or message digest.
|
public VerifyDataDetails.Builder keyId(String keyId)
The OCID of the key used to sign the message.
keyId
- the value to setpublic VerifyDataDetails.Builder keyVersionId(String keyVersionId)
The OCID of the key version used to sign the message.
keyVersionId
- the value to setpublic VerifyDataDetails.Builder signature(String signature)
The base64-encoded binary data object denoting the cryptographic signature generated for the message.
signature
- the value to setpublic VerifyDataDetails.Builder messageType(VerifyDataDetails.MessageType messageType)
Denotes whether the value of the message parameter is a raw message or a message digest.
The default value, RAW
, indicates a message. To indicate a message digest, use
DIGEST
.
messageType
- the value to setpublic VerifyDataDetails.Builder message(String message)
The base64-encoded binary data object denoting the message or message digest to sign. You can have a message up to 4096 bytes in size. To sign a larger message, provide the message digest.
message
- the value to setpublic VerifyDataDetails.Builder signingAlgorithm(VerifyDataDetails.SigningAlgorithm signingAlgorithm)
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.
signingAlgorithm
- the value to setpublic VerifyDataDetails build()
public VerifyDataDetails.Builder copy(VerifyDataDetails model)
Copyright © 2016–2024. All rights reserved.