MetadataSignOptions

Inheritance: java.lang.Object, com.groupdocs.signature.options.sign.SignOptions

public class MetadataSignOptions extends SignOptions

Represents Metadata signature options.

Constructors

Constructor Description
MetadataSignOptions() Initializes a new instance of the SignMetadataOptions class with default values.
MetadataSignOptions(ArrayList signatures) Initializes a new instance of the SignMetadataOptions class with Metadata.

Methods

Method Description
getSignatures() Gets or sets the Metadata of signature.
setSignatures(MetadataSignatureCollection value) Gets or sets the Metadata of signature.
getDataEncryption() Gets or sets implementation of IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties.
setDataEncryption(IDataEncryption value) Gets or sets implementation of IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties.
addPdfSignature(String name, Object value, String tag) Creates new PdfMetadataSignature with passed arguments and adds it to collection.
addImageSignature(int id, Object value) Creates new ImageMetadataSignature with passed arguments and adds it to collection.
add(MetadataSignature metadataSignature) Add existing MetadataSignature instance to collection.
validate() Internal method to validate the options parameters.
toString() Override string conversion.
signature()

MetadataSignOptions()

public MetadataSignOptions()

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

MetadataSignOptions(ArrayList signatures)

public MetadataSignOptions(ArrayList<MetadataSignature> signatures)

Initializes a new instance of the SignMetadataOptions class with Metadata.

Parameters:

Parameter Type Description
signatures java.util.ArrayList<com.groupdocs.signature.domain.signatures.metadata.MetadataSignature> Collection of Metadata Signatures MetadataSignature.

getSignatures()

public final MetadataSignatureCollection getSignatures()

Gets or sets the Metadata of signature.

Returns: MetadataSignatureCollection

setSignatures(MetadataSignatureCollection value)

public final void setSignatures(MetadataSignatureCollection value)

Gets or sets the Metadata of signature.

Parameters:

Parameter Type Description
value MetadataSignatureCollection

getDataEncryption()

public final IDataEncryption getDataEncryption()

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

Returns: IDataEncryption

setDataEncryption(IDataEncryption value)

public final void setDataEncryption(IDataEncryption value)

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

Parameters:

Parameter Type Description
value IDataEncryption

addPdfSignature(String name, Object value, String tag)

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

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

Parameters:

Parameter Type Description
name java.lang.String Name of Metadata signature object
value java.lang.Object Value of Metadata signature
tag java.lang.String Prefix tag of Metadata signature

Returns: PdfMetadataSignature - Newly created signature that was added to MetadataSignatures collection

addImageSignature(int id, Object value)

public final ImageMetadataSignature addImageSignature(int id, Object value)

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

Parameters:

Parameter Type Description
id int Unique identifier Image Metadata Signature name. See references for Exif tags specifications for possible id values
value java.lang.Object Metadata value

Returns: ImageMetadataSignature - Newly created signature that was added to MetadataSignatures collection

add(MetadataSignature metadataSignature)

public final MetadataSignOptions add(MetadataSignature metadataSignature)

Add existing MetadataSignature instance to collection.

Parameters:

Parameter Type Description
metadataSignature MetadataSignature The existing MetadataSignature instance to be added

Returns: MetadataSignOptions - Instance itself

validate()

public void validate()

Internal method to validate the options parameters.

toString()

public String toString()

Override string conversion.

Returns: java.lang.String -

signature()

public BaseSignature signature()

Returns: BaseSignature