Class VerifyDataDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.keymanagement.model.VerifyDataDetails.Builder
-
- Enclosing class:
- VerifyDataDetails
public static class VerifyDataDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerifyDataDetailsbuild()VerifyDataDetails.Buildercopy(VerifyDataDetails model)VerifyDataDetails.BuilderkeyId(String keyId)The OCID of the key used to sign the message.VerifyDataDetails.BuilderkeyVersionId(String keyVersionId)The OCID of the key version used to sign the message.VerifyDataDetails.Buildermessage(String message)The base64-encoded binary data object denoting the message or message digest to sign.VerifyDataDetails.BuildermessageType(VerifyDataDetails.MessageType messageType)Denotes whether the value of the message parameter is a raw message or a message digest.VerifyDataDetails.Buildersignature(String signature)The base64-encoded binary data object denoting the cryptographic signature generated for the message.VerifyDataDetails.BuildersigningAlgorithm(VerifyDataDetails.SigningAlgorithm signingAlgorithm)The algorithm to use to sign the message or message digest.
-
-
-
Method Detail
-
keyId
public VerifyDataDetails.Builder keyId(String keyId)
The OCID of the key used to sign the message.- Parameters:
keyId- the value to set- Returns:
- this builder
-
keyVersionId
public VerifyDataDetails.Builder keyVersionId(String keyVersionId)
The OCID of the key version used to sign the message.- Parameters:
keyVersionId- the value to set- Returns:
- this builder
-
signature
public VerifyDataDetails.Builder signature(String signature)
The base64-encoded binary data object denoting the cryptographic signature generated for the message.- Parameters:
signature- the value to set- Returns:
- this builder
-
messageType
public 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.
- Parameters:
messageType- the value to set- Returns:
- this builder
-
message
public 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.
- Parameters:
message- the value to set- Returns:
- this builder
-
signingAlgorithm
public 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.
- Parameters:
signingAlgorithm- the value to set- Returns:
- this builder
-
build
public VerifyDataDetails build()
-
copy
public VerifyDataDetails.Builder copy(VerifyDataDetails model)
-
-