public class DigitalSignOptions extends ImageSignOptions
Represents the Digital signature options.
Constructor and Description |
---|
DigitalSignOptions()
Initializes a new instance of the DigitalSignOptions class with default values.
|
DigitalSignOptions(InputStream certificateStream)
Initializes a new instance of the DigitalSignOptions class with certificate stream.
|
DigitalSignOptions(InputStream certificateStream,
InputStream appearenceImageStream)
Initializes a new instance of the DigitalSignOptions class with certificate stream and image stream.
|
DigitalSignOptions(InputStream certificateStream,
String imageFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate stream and image file.
|
DigitalSignOptions(String certificateFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate file.
|
DigitalSignOptions(String certificateFilePath,
InputStream appearenceImageStream)
Initializes a new instance of the DigitalSignOptions class with certificate file and image stream.
|
DigitalSignOptions(String certificateFilePath,
String imageFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate file and image file.
|
Modifier and Type | Method and Description |
---|---|
String |
getCertificateFilePath()
Gets or sets the digital certificate file path.
|
InputStream |
getCertificateStream()
Gets or sets digital certificate stream.
|
String |
getContact()
Gets or sets the signature contact.
|
String |
getLocation()
Gets or sets the signature location.
|
String |
getPassword()
Gets or sets the password of digital certificate.
|
String |
getReason()
Gets or sets the reason of signature.
|
DigitalSignature |
getSignature()
Gets or sets properties of document digital signature.
|
UUID |
getSignatureLineId() |
boolean |
getVisible()
Gets or sets the visibility of signature.
|
int |
getXAdESType()
XAdES type
XAdESType . |
void |
setCertificateFilePath(String value)
Gets or sets the digital certificate file GUID.
|
void |
setCertificateStream(InputStream value)
Gets or sets digital certificate stream.
|
void |
setContact(String value)
Gets or sets the signature contact.
|
void |
setLocation(String value)
Gets or sets the signature location.
|
void |
setPassword(String value)
Gets or sets the password of digital certificate.
|
void |
setReason(String value)
Gets or sets the reason of signature.
|
void |
setSignature(DigitalSignature value)
Gets or sets properties of document digital signature.
|
void |
setSignatureLineId(UUID value) |
void |
setVisible(boolean value)
Gets or sets the visibility of signature.
|
void |
setXAdESType(int value)
XAdES type
XAdESType . |
String |
toString()
Override string conversion.
|
dispose, fromBase64, getAllPages, getBorder, getHeight, getHorizontalAlignment, getImageFilePath, getImageStream, getLeft, getLocationMeasureType, getMargin, getMarginMeasureType, getRectangle, getRotationAngle, getSizeMeasureType, getStretch, getTop, getTransparency, getVerticalAlignment, getWidth, setAllPages, setBorder, setHeight, setHorizontalAlignment, setImageFilePath, setImageStream, setLeft, setLocationMeasureType, setMargin, setMarginMeasureType, setRotationAngle, setSizeMeasureType, setStretch, setTop, setTransparency, setVerticalAlignment, setWidth
addSignature, getAppearance, getDocumentType, getExtensions, getPageNumber, getPagesSetup, getSignatureType, getZOrder, setAppearance, setDocumentType, setExtensions, setPageNumber, setPagesSetup, setZOrder
public DigitalSignOptions()
Initializes a new instance of the DigitalSignOptions class with default values.
public DigitalSignOptions(InputStream certificateStream)
Initializes a new instance of the DigitalSignOptions class with certificate stream.
certificateStream
- Digital Certificate streampublic DigitalSignOptions(InputStream certificateStream, InputStream appearenceImageStream)
Initializes a new instance of the DigitalSignOptions class with certificate stream and image stream.
certificateStream
- Digital Certificate streamappearenceImageStream
- Signature Appearance image streampublic DigitalSignOptions(InputStream certificateStream, String imageFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate stream and image file.
certificateStream
- Digital Certificate streamimageFilePath
- Signature Appearance image file pathpublic DigitalSignOptions(String certificateFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate file.
certificateFilePath
- Digital certificate file pathpublic DigitalSignOptions(String certificateFilePath, InputStream appearenceImageStream)
Initializes a new instance of the DigitalSignOptions class with certificate file and image stream.
certificateFilePath
- Digital certificate file pathappearenceImageStream
- Signature Appearance image streampublic DigitalSignOptions(String certificateFilePath, String imageFilePath)
Initializes a new instance of the DigitalSignOptions class with certificate file and image file.
certificateFilePath
- Digital certificate file pathimageFilePath
- Signature Appearance image file pathpublic final String getCertificateFilePath()
Gets or sets the digital certificate file path. This property is used only if CertificateStream is not specified.
public final InputStream getCertificateStream()
Gets or sets digital certificate stream. If this property is specified it is always used instead CertificateGuid.
public final String getContact()
Gets or sets the signature contact.
public final String getLocation()
Gets or sets the signature location.
public final String getPassword()
Gets or sets the password of digital certificate.
public final String getReason()
Gets or sets the reason of signature.
public final DigitalSignature getSignature()
Gets or sets properties of document digital signature.
public final UUID getSignatureLineId()
public final boolean getVisible()
Gets or sets the visibility of signature.
public final int getXAdESType()
XAdES type XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents under .NET Framework only (not under .NET Standard)
public void setCertificateFilePath(String value)
Gets or sets the digital certificate file GUID. This property is used only if CertificateStream is not specified.
public final void setCertificateStream(InputStream value)
Gets or sets digital certificate stream. If this property is specified it is always used instead CertificateGuid.
public final void setContact(String value)
Gets or sets the signature contact.
public final void setLocation(String value)
Gets or sets the signature location.
public final void setPassword(String value)
Gets or sets the password of digital certificate.
public final void setReason(String value)
Gets or sets the reason of signature.
public final void setSignature(DigitalSignature value)
Gets or sets properties of document digital signature.
public final void setSignatureLineId(UUID value)
public final void setVisible(boolean value)
Gets or sets the visibility of signature.
public final void setXAdESType(int value)
XAdES type XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents under .NET Framework only (not under .NET Standard)
public String toString()
Override string conversion.
toString
in class ImageSignOptions