Class VerifyDataDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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