| |
|
| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfDictionary com.lowagie.text.pdf.PdfSignature com.lowagie.text.pdf.PdfSigGenericPKCS
PdfSigGenericPKCS | abstract public class PdfSigGenericPKCS extends PdfSignature (Code) | | A signature dictionary representation for the standard filters.
|
Method Summary | |
public String | getName() | public PdfPKCS7 | getSigner() Gets the class instance that does the actual signing. | public byte[] | getSignerContents() Gets the signature content. | public void | setExternalDigest(byte digest, byte RSAdata, String digestEncryptionAlgorithm) Sets the digest/signature to an external calculated value.
Parameters: digest - the digest. | public void | setSignInfo(PrivateKey privKey, Certificate[] certChain, CRL[] crlList) Sets the crypto information to sign.
Parameters: privKey - the private key Parameters: certChain - the certificate chain Parameters: crlList - the certificate revocation list. |
hashAlgorithm | protected String hashAlgorithm(Code) | | The hash algorith, for example "SHA1"
|
name | protected String name(Code) | | The subject name in the signing certificate (the element "CN")
|
pkcs | protected PdfPKCS7 pkcs(Code) | | The class instance that calculates the PKCS#1 and PKCS#7
|
PdfSigGenericPKCS | public PdfSigGenericPKCS(PdfName filter, PdfName subFilter)(Code) | | Creates a generic standard filter.
Parameters: filter - the filter name Parameters: subFilter - the sub-filter name |
getName | public String getName()(Code) | | Gets the subject name in the signing certificate (the element "CN")
the subject name in the signing certificate (the element "CN") |
getSigner | public PdfPKCS7 getSigner()(Code) | | Gets the class instance that does the actual signing.
the class instance that does the actual signing |
getSignerContents | public byte[] getSignerContents()(Code) | | Gets the signature content. This can be a PKCS#1 or a PKCS#7. It corresponds to
the /Contents key.
the signature content |
setExternalDigest | public void setExternalDigest(byte digest, byte RSAdata, String digestEncryptionAlgorithm)(Code) | | Sets the digest/signature to an external calculated value.
Parameters: digest - the digest. This is the actual signature Parameters: RSAdata - the extra data that goes into the data tag in PKCS#7 Parameters: 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" |
setSignInfo | public void setSignInfo(PrivateKey privKey, Certificate[] certChain, CRL[] crlList)(Code) | | Sets the crypto information to sign.
Parameters: privKey - the private key Parameters: certChain - the certificate chain Parameters: crlList - the certificate revocation list. It can be null |
|
|
|