public class MetadataSignOptions extends SignOptions
Represents Metadata signature options.
Constructor and Description |
---|
MetadataSignOptions()
Initializes a new instance of the SignMetadataOptions class with default values.
|
MetadataSignOptions(ArrayList<MetadataSignature> signatures)
Initializes a new instance of the SignMetadataOptions class with Metadata.
|
Modifier and Type | Method and Description |
---|---|
ImageMetadataSignature |
addImageSignature(int id,
Object value)
Creates new ImageMetadataSignature with passed arguments and adds it to collection.
|
PdfMetadataSignature |
addPdfSignature(String name,
Object value,
String tag)
Creates new PdfMetadataSignature with passed arguments and adds it to collection.
|
IDataEncryption |
getDataEncryption()
Gets or sets implementation of
IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties. |
MetadataSignatureCollection |
getSignatures()
Gets or sets the Metadata of signature.
|
void |
setDataEncryption(IDataEncryption value)
Gets or sets implementation of
IDataEncryption interface to encode and decode QR-Code Signature Text or Data properties. |
void |
setSignatures(MetadataSignatureCollection value)
Gets or sets the Metadata of signature.
|
BaseSignature |
signature() |
String |
toString()
Override string conversion.
|
void |
validate()
Internal method to validate the options parameters.
|
addSignature, getAllPages, getAppearance, getDocumentType, getExtensions, getPageNumber, getPagesSetup, getSignatureType, getZOrder, setAllPages, setAppearance, setDocumentType, setExtensions, setPageNumber, setPagesSetup, setZOrder
public MetadataSignOptions()
Initializes a new instance of the SignMetadataOptions class with default values.
public MetadataSignOptions(ArrayList<MetadataSignature> signatures) throws Exception
Initializes a new instance of the SignMetadataOptions class with Metadata.
signatures
- Collection of Metadata Signatures MetadataSignature
.Exception
public final ImageMetadataSignature addImageSignature(int id, Object value) throws Exception
Creates new ImageMetadataSignature with passed arguments and adds it to collection.
id
- Unique identifier Image Metadata Signature name. See references for Exif tags specifications for possible id valuesvalue
- Metadata valueException
public final PdfMetadataSignature addPdfSignature(String name, Object value, String tag) throws Exception
Creates new PdfMetadataSignature with passed arguments and adds it to collection.
name
- Name of Metadata signature objectvalue
- Value of Metadata signaturetag
- Prefix tag of Metadata signatureException
public final IDataEncryption getDataEncryption()
Gets or sets implementation of IDataEncryption
interface to encode and decode QR-Code Signature Text or Data properties.
public final MetadataSignatureCollection getSignatures()
Gets or sets the Metadata of signature.
public final void setDataEncryption(IDataEncryption value)
Gets or sets implementation of IDataEncryption
interface to encode and decode QR-Code Signature Text or Data properties.
public final void setSignatures(MetadataSignatureCollection value)
Gets or sets the Metadata of signature.
public BaseSignature signature()
signature
in class SignOptions
public String toString()
Override string conversion.
toString
in class SignOptions
public void validate()
Internal method to validate the options parameters.
validate
in class SignOptions