public static class SignedData.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SignedData |
build() |
SignedData.Builder |
copy(SignedData model) |
SignedData.Builder |
keyId(String keyId)
The OCID of the key used to sign the message.
|
SignedData.Builder |
keyVersionId(String keyVersionId)
The OCID of the key version used to sign the message.
|
SignedData.Builder |
signature(String signature)
The base64-encoded binary data object denoting the cryptographic signature generated for
the message or message digest.
|
SignedData.Builder |
signingAlgorithm(SignedData.SigningAlgorithm signingAlgorithm)
The algorithm to use to sign the message or message digest.
|
public SignedData.Builder keyId(String keyId)
The OCID of the key used to sign the message.
keyId
- the value to setpublic SignedData.Builder keyVersionId(String keyVersionId)
The OCID of the key version used to sign the message.
keyVersionId
- the value to setpublic SignedData.Builder signature(String signature)
The base64-encoded binary data object denoting the cryptographic signature generated for the message or message digest.
signature
- the value to setpublic SignedData.Builder signingAlgorithm(SignedData.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 SignedData build()
public SignedData.Builder copy(SignedData model)
Copyright © 2016–2024. All rights reserved.