_FileSelect, _Password
_disableUpdateAppearance
Constructor and Description |
---|
SignatureField(Page page,
Rectangle rect)
Initializes new instance of the
SignatureField class. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes signature object from field.
|
InputStream |
extractCertificate()
Extracts the single X.509 certificate in DER format as a stream.
|
InputStream |
extractImage()
Extracts signature's image.
|
Signature |
getSignature()
Gets signature object.
|
void |
sign(Signature signature)
Sign the document using this signature field.
|
void |
sign(Signature signature,
InputStream pfx,
String pass)
Signs the document using this signature field.
|
copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getFitIntoRectangle, getMappingName, getPageIndex, getPartialName, getRect, getSyncRoot, getValue, isGroup, isSharedField, isSynchronized, iterator, recalculate, setAlternateName, setAnnotationIndex, setFieldImage, setFitIntoRectangle, setMappingName, setPartialName, setPosition, setRect, setSharedField, setValue, size, updateAppearances
accept, getActions, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequired
getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getStates, getUseFontSubset, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor_Rename_Namesake, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setUseFontSubset, setWidth
getHorizontalAlignment, getMargin, isInNewPage, isKeptWithNext, setHorizontalAlignment, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment
public Signature getSignature()
Gets signature object.
This object contains signature data regarding public-key cryptographic standards.
Classes PKCS1
, PKCS7
and PKCS7Detached
represent all supported types of signature objects.
public void sign(Signature signature, InputStream pfx, String pass)
Signs the document using this signature field.
signature
- Signature object, see PKCS1
, PKCS7
, PKCS7Detached
.pfx
- Stream with certificate.pass
- Password to access private in the pfx
.public void sign(Signature signature)
Sign the document using this signature field.
signature
- Signature object, see PKCS1
, PKCS7
and PKCS7Detached
.public void clear()
Removes signature object from field.
public InputStream extractImage()
Extracts signature's image.
public InputStream extractCertificate()
Extracts the single X.509 certificate in DER format as a stream.
Copyright © 2014 Aspose. All Rights Reserved.