public class PDFSignature extends Object implements Serializable
PDFSignature
class contains information about the
filter and subfilters that are used for validating the signature embedded in a signed or certified PDF document.Constructor and Description |
---|
PDFSignature()
A constructor that creates a
PDFSignature object. |
Modifier and Type | Method and Description |
---|---|
byte[][] |
getCertificates()
Returns the certificates that are embedded in the PDF document at the time of
signing.
|
byte[] |
getContents()
Returns the actual signature value as DER encoded PKCS#1 or PKCS#7.
|
byte[][] |
getCRLs()
Returns a byte array, where each element is a byte array that represents
certificate revocation list (CRL) information.
|
String |
getFilter()
Returns the name of the preferred signature handler which is used
while validating the signature.
|
byte[][] |
getOCSPResponses()
Returns a byte array, where each element is a byte array that represents
information returned from the OCSP server.
|
String |
getSubFilter()
Returns the subFilter of the handler used to sign the signature field.
|
byte[] |
getTimestamp()
Returns a byte array, where each element contains information returned from the time stamp server.
|
void |
setCertificates(byte[][] certs)
Sets certificates that are embedded in the PDF document.
|
void |
setContents(byte[] contents)
Sets the signature value as DER encoded PKCS#1 or PKCS#7.
|
void |
setCRLs(byte[][] crls)
Sets a byte array, where each element is a byte array that represents
certificate revocation list (CRL) information.
|
void |
setFilter(String filter)
Sets the name of the preferred signature handler to use while validating the signature.
|
void |
setOCSPResponses(byte[][] ocspResponses)
Sets a byte array, where each element is a byte array that represents
information returned from the OCSP server.
|
void |
setSubFilter(String subFilter)
Sets the subFilter of the handler used to sign the signature field.
|
void |
setTimestamp(byte[] timestamp)
Sets a byte array, where each element contains information returned from the time stamp server.
|
String |
toString() |
public PDFSignature()
PDFSignature
object.public byte[][] getCRLs()
public void setCRLs(byte[][] crls)
crls
- A byte array where each element is byte array containing certificate revocation list
(CRL) information.public byte[][] getOCSPResponses()
public void setOCSPResponses(byte[][] ocspResponses)
ocspResponses
- A byte array where each element is byte array containing information returned from the OCSP server.public byte[] getTimestamp()
public void setTimestamp(byte[] timestamp)
timestamp
- A byte array, where each element contains information returned from the time stamp server.public byte[][] getCertificates()
adbe.pkcs7.detached
or adbe.pkcs7.sha1
then this method returns null and the certificates are
included in the PKCS#7 envelope of the content.public void setCertificates(byte[][] certs)
certs
- An array of bytes streams that represent the certificates to set.public byte[] getContents()
adbe.pkcs7.detached
or adbe.pkcs7.sha1
then the
PKCS#7 packet contains the embedded certificates.public void setContents(byte[] contents)
contents
- A byte stream that represents the signature value.public String getFilter()
Adobe.PPKLite
, Entrust.PPKEF
, CICI.SignIt
,
and VeriSign.PPKVS
.public void setFilter(String filter)
filter
- The name of the preferred signature handler.public String getSubFilter()
public void setSubFilter(String subFilter)
subFilter
- The subFilter of the handler used to sign the signature field.Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.