DigitalVerifyOptions

Inheritance: java.lang.Object, com.groupdocs.signature.options.verify.VerifyOptions

public class DigitalVerifyOptions extends VerifyOptions

Keeps options to verify document Digital signature.


Learn more

  • Basic usage of verification for Digital electronic signature by GroupDocs.Signature: How to eVerification Digital signatures in a document
  • Advanced usage of settings of verification for Digital electronic signature with GroupDocs.Signature: Advanced usage of eVerification Digital signatures in a document and additional settings

Constructors

Constructor Description
DigitalVerifyOptions() Creates Digital Verification Option with default values.
DigitalVerifyOptions(String certificateGuid) Creates Digital Verification Option with given digital certificate guid.
DigitalVerifyOptions(InputStream certificateStream) Creates Digital Verification Option with given certificate stream.

Methods

Method Description
getCertificate() Get X509Certificate2 Certificate from Certificate Guid or Stream.
getPassword() Password of Digital Certificate if required.
setPassword(String value) Password of Digital Certificate if required.
getCertificateFilePath() File Guid of Digital Certificate.
setCertificateFilePath(String value) File Guid of Digital Certificate.
getCertificateStream() Stream of Digital Certificate.
setCertificateStream(InputStream value) Stream of Digital Certificate.
getComments() Comments of Digital Signature to validate.
setComments(String value) Comments of Digital Signature to validate.
getSignDateTimeFrom() Date and time range of Digital Signature to validate.
setSignDateTimeFrom(Date value) Date and time range of Digital Signature to validate.
getSignDateTimeTo() Date and time range of Digital Signature to validate.
setSignDateTimeTo(Date value) Date and time range of Digital Signature to validate.
getReason() Reason of Digital Signature to validate.
setReason(String value) Reason of Digital Signature to validate.
getContact() Signature Contact to validate.
setContact(String value) Signature Contact to validate.
getLocation() Signature Location to validate.
setLocation(String value) Signature Location to validate.
getSubjectName() Subject distinguished name of the certificate to validate.
setSubjectName(String value) Subject distinguished name of the certificate to validate.
getIssuerName() Issuer name of the certificate to validate.
setIssuerName(String value) Issuer name of the certificate to validate.

DigitalVerifyOptions()

public DigitalVerifyOptions()

Creates Digital Verification Option with default values.

DigitalVerifyOptions(String certificateGuid)

public DigitalVerifyOptions(String certificateGuid)

Creates Digital Verification Option with given digital certificate guid.

Parameters:

Parameter Type Description
certificateGuid java.lang.String File path to digital certificate.

DigitalVerifyOptions(InputStream certificateStream)

public DigitalVerifyOptions(InputStream certificateStream)

Creates Digital Verification Option with given certificate stream.

Parameters:

Parameter Type Description
certificateStream java.io.InputStream Certificate’s stream.

getCertificate()

public KeyStore getCertificate()

Get X509Certificate2 Certificate from Certificate Guid or Stream.

Returns: java.security.KeyStore

getPassword()

public final String getPassword()

Password of Digital Certificate if required.

Returns: java.lang.String

setPassword(String value)

public final void setPassword(String value)

Password of Digital Certificate if required.

Parameters:

Parameter Type Description
value java.lang.String

getCertificateFilePath()

public final String getCertificateFilePath()

File Guid of Digital Certificate.

Returns: java.lang.String

setCertificateFilePath(String value)

public final void setCertificateFilePath(String value)

File Guid of Digital Certificate.

Parameters:

Parameter Type Description
value java.lang.String

getCertificateStream()

public final InputStream getCertificateStream()

Stream of Digital Certificate.

Returns: java.io.InputStream

setCertificateStream(InputStream value)

public final void setCertificateStream(InputStream value)

Stream of Digital Certificate.

Parameters:

Parameter Type Description
value java.io.InputStream

getComments()

public final String getComments()

Comments of Digital Signature to validate.

Returns: java.lang.String

setComments(String value)

public final void setComments(String value)

Comments of Digital Signature to validate.

Parameters:

Parameter Type Description
value java.lang.String

getSignDateTimeFrom()

public Date getSignDateTimeFrom()

Date and time range of Digital Signature to validate. Nullable value will be ignored.

Returns: java.util.Date

setSignDateTimeFrom(Date value)

public void setSignDateTimeFrom(Date value)

Date and time range of Digital Signature to validate. Nullable value will be ignored.

Parameters:

Parameter Type Description
value java.util.Date

getSignDateTimeTo()

public Date getSignDateTimeTo()

Date and time range of Digital Signature to validate. Nullable value will be ignored.

Returns: java.util.Date

setSignDateTimeTo(Date value)

public void setSignDateTimeTo(Date value)

Date and time range of Digital Signature to validate. Nullable value will be ignored.

Parameters:

Parameter Type Description
value java.util.Date

getReason()

public final String getReason()

Reason of Digital Signature to validate.

Returns: java.lang.String

setReason(String value)

public final void setReason(String value)

Reason of Digital Signature to validate.

Parameters:

Parameter Type Description
value java.lang.String

getContact()

public final String getContact()

Signature Contact to validate.

Returns: java.lang.String

setContact(String value)

public final void setContact(String value)

Signature Contact to validate.

Parameters:

Parameter Type Description
value java.lang.String

getLocation()

public final String getLocation()

Signature Location to validate.

Returns: java.lang.String

setLocation(String value)

public final void setLocation(String value)

Signature Location to validate.

Parameters:

Parameter Type Description
value java.lang.String

getSubjectName()

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

Returns: java.lang.String

setSubjectName(String value)

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

Parameters:

Parameter Type Description
value java.lang.String

getIssuerName()

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

Returns: java.lang.String

setIssuerName(String value)

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

Parameters:

Parameter Type Description
value java.lang.String