com.lowagie.text.pdf
public abstract class PdfSigGenericPKCS extends PdfSignature
Nested Class Summary | |
---|---|
static class | PdfSigGenericPKCS.PPKLite
Creates a standard filter of the type self signed. |
static class | PdfSigGenericPKCS.PPKMS
Creates a standard filter of the type Windows Certificate. |
static class | PdfSigGenericPKCS.VeriSign
Creates a standard filter of the type VeriSign. |
Field Summary | |
---|---|
String | digestEncryptionAlgorithm |
byte[] | externalDigest |
byte[] | externalRSAdata |
protected String | hashAlgorithm
The hash algorith, for example "SHA1" |
protected String | name
The subject name in the signing certificate (the element "CN") |
protected PdfPKCS7 | pkcs
The class instance that calculates the PKCS#1 and PKCS#7 |
protected String | provider
The crypto provider |
Constructor Summary | |
---|---|
PdfSigGenericPKCS(PdfName filter, PdfName subFilter)
Creates a generic standard filter. |
Method Summary | |
---|---|
String | getName()
Gets the subject name in the signing certificate (the element "CN") |
PdfPKCS7 | getSigner()
Gets the class instance that does the actual signing. |
byte[] | getSignerContents()
Gets the signature content. |
void | setExternalDigest(byte[] digest, byte[] RSAdata, String digestEncryptionAlgorithm)
Sets the digest/signature to an external calculated value. |
void | setSignInfo(PrivateKey privKey, Certificate[] certChain, CRL[] crlList)
Sets the crypto information to sign. |
Parameters: filter the filter name subFilter the sub-filter name
Returns: the subject name in the signing certificate (the element "CN")
Returns: the class instance that does the actual signing
Returns: the signature content
Parameters: digest the digest. This is the actual signature RSAdata the extra data that goes into the data tag in PKCS#7 digestEncryptionAlgorithm the encryption algorithm. It may must be null
if the digest
is also null
. If the digest
is not null
then it may be "RSA" or "DSA"
Parameters: privKey the private key certChain the certificate chain crlList the certificate revocation list. It can be null