Class SignMessageBuilder

    • Constructor Detail

      • SignMessageBuilder

        public SignMessageBuilder()
    • Method Detail

      • builder

        public static SignMessageBuilder builder()
        Utility method that creates a builder.
        Returns:
        a builder
      • message

        public SignMessageBuilder message​(String message)
        Assigns the message to include.

        If the message should be encrypted, use SignMessageEncrypter after the SignMessage has been built.

        Parameters:
        message - the message to include (in cleartext)
        Returns:
        the builder
      • displayEntity

        public SignMessageBuilder displayEntity​(String displayEntity)
        Assigns the entityID of the entity responsible for displaying the sign message to the signer. When the sign message is encrypted, then this entity is also the holder of the private decryption key necessary to decrypt the sign message.
        Parameters:
        displayEntity - the entityID of the recipient
        Returns:
        the builder
      • mustShow

        public SignMessageBuilder mustShow​(Boolean mustShow)
        Assigns the MustShow attribute. When this parameter is set to true then the requested signature MUST NOT be created unless this message has been displayed and accepted by the signer.
        Parameters:
        mustShow - the must show flag
        Returns:
        the builder