com.groupdocs.signature.options.sign

Class MetadataSignOptions



  • public class MetadataSignOptions
    extends SignOptions

    Represents Metadata signature options.

    • Constructor Detail

      • MetadataSignOptions

        public MetadataSignOptions()

        Initializes a new instance of the SignMetadataOptions class with default values.

    • Method Detail

      • addImageSignature

        public final ImageMetadataSignature addImageSignature(int id,
                                                              Object value)
                                                       throws Exception

        Creates new ImageMetadataSignature with passed arguments and adds it to collection.

        Parameters:
        id - Unique identifier Image Metadata Signature name. See references for Exif tags specifications for possible id values
        value - Metadata value
        Returns:
        Newly created signature that was added to MetadataSignatures collection
        Throws:
        Exception
      • addPdfSignature

        public final PdfMetadataSignature addPdfSignature(String name,
                                                          Object value,
                                                          String tag)
                                                   throws Exception

        Creates new PdfMetadataSignature with passed arguments and adds it to collection.

        Parameters:
        name - Name of Metadata signature object
        value - Value of Metadata signature
        tag - Prefix tag of Metadata signature
        Returns:
        Newly created signature that was added to MetadataSignatures collection
        Throws:
        Exception
      • getDataEncryption

        public final IDataEncryption getDataEncryption()

        Gets or sets implementation of IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties.

      • setDataEncryption

        public final void setDataEncryption(IDataEncryption value)

        Gets or sets implementation of IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties.

      • validate

        public void validate()

        Internal method to validate the options parameters.

        Overrides:
        validate in class SignOptions