public class DigitalVerifyOptions extends VerifyOptions
Keeps options to verify document Digital signature.
Constructor and Description |
---|
DigitalVerifyOptions()
Creates Digital Verification Option with default values.
|
DigitalVerifyOptions(InputStream certificateStream)
Creates Digital Verification Option with given certificate stream.
|
DigitalVerifyOptions(String certificateGuid)
Creates Digital Verification Option with given digital certificate guid.
|
Modifier and Type | Method and Description |
---|---|
KeyStore |
getCertificate()
Get X509Certificate2 Certificate from Certificate Guid or Stream.
|
String |
getCertificateFilePath()
File Guid of Digital Certificate.
|
InputStream |
getCertificateStream()
Stream of Digital Certificate.
|
String |
getComments()
Comments of Digital Signature to validate.
|
String |
getContact()
Signature Contact to validate.
|
String |
getIssuerName()
Issuer name of the certificate to validate.
|
String |
getLocation()
Signature Location to validate.
|
String |
getPassword()
Password of Digital Certificate if required.
|
String |
getReason()
Reason of Digital Signature to validate.
|
Date |
getSignDateTimeFrom()
Date and time range of Digital Signature to validate.
|
Date |
getSignDateTimeTo()
Date and time range of Digital Signature to validate.
|
String |
getSubjectName()
Subject distinguished name of the certificate to validate.
|
void |
setCertificateFilePath(String value)
File Guid of Digital Certificate.
|
void |
setCertificateStream(InputStream value)
Stream of Digital Certificate.
|
void |
setComments(String value)
Comments of Digital Signature to validate.
|
void |
setContact(String value)
Signature Contact to validate.
|
void |
setIssuerName(String value)
Issuer name of the certificate to validate.
|
void |
setLocation(String value)
Signature Location to validate.
|
void |
setPassword(String value)
Password of Digital Certificate if required.
|
void |
setReason(String value)
Reason of Digital Signature to validate.
|
void |
setSignDateTimeFrom(Date value)
Date and time range of Digital Signature to validate.
|
void |
setSignDateTimeTo(Date value)
Date and time range of Digital Signature to validate.
|
void |
setSubjectName(String value)
Subject distinguished name of the certificate to validate.
|
getAllPages, getExtensions, getPageNumber, getPagesSetup, isValid, setAllPages, setExtensions, setPageNumber, setPagesSetup, setValid, toString
public DigitalVerifyOptions()
Creates Digital Verification Option with default values.
public DigitalVerifyOptions(InputStream certificateStream)
Creates Digital Verification Option with given certificate stream.
certificateStream
- Certificate's stream.public DigitalVerifyOptions(String certificateGuid)
Creates Digital Verification Option with given digital certificate guid.
certificateGuid
- File path to digital certificate.public KeyStore getCertificate() throws Exception
Get X509Certificate2 Certificate from Certificate Guid or Stream.
Exception
public final String getCertificateFilePath()
File Guid of Digital Certificate.
public final InputStream getCertificateStream()
Stream of Digital Certificate.
public final String getComments()
Comments of Digital Signature to validate.
public final String getContact()
Signature Contact to validate.
public final String getIssuerName()
Issuer name of the certificate to validate. Value is case sensitive. If this property is set verification will check if Signature's issuer name contains or equals passed value
public final String getLocation()
Signature Location to validate.
public final String getPassword()
Password of Digital Certificate if required.
public final String getReason()
Reason of Digital Signature to validate.
public Date getSignDateTimeFrom()
Date and time range of Digital Signature to validate. Nullable value will be ignored.
public Date getSignDateTimeTo()
Date and time range of Digital Signature to validate. Nullable value will be ignored.
public final String getSubjectName()
Subject distinguished name of the certificate to validate. Value is case sensitive. If this property is set verification will check if Signature subject name contains or equals passed value
public final void setCertificateFilePath(String value)
File Guid of Digital Certificate.
public final void setCertificateStream(InputStream value)
Stream of Digital Certificate.
public final void setComments(String value)
Comments of Digital Signature to validate.
public final void setContact(String value)
Signature Contact to validate.
public final void setIssuerName(String value)
Issuer name of the certificate to validate. Value is case sensitive. If this property is set verification will check if Signature's issuer name contains or equals passed value
public final void setLocation(String value)
Signature Location to validate.
public final void setPassword(String value)
Password of Digital Certificate if required.
public final void setReason(String value)
Reason of Digital Signature to validate.
public void setSignDateTimeFrom(Date value)
Date and time range of Digital Signature to validate. Nullable value will be ignored.
public void setSignDateTimeTo(Date value)
Date and time range of Digital Signature to validate. Nullable value will be ignored.
public final void setSubjectName(String value)
Subject distinguished name of the certificate to validate. Value is case sensitive. If this property is set verification will check if Signature subject name contains or equals passed value