Class PDFSignature
java.lang.Object
org.apache.fop.pdf.PDFSignature
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) class(package private) class(package private) static class(package private) static class(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PDFSignature.Permsprivate PrivateKeyprivate PDFRootprivate PDFSignParamsprivate static final intprivate longprivate longprivate static final org.apache.xmlgraphics.io.TempResourceURIGeneratorprivate URIprivate FOUserAgent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate InputStreamprivate OutputStreamprivate Certificate[]readKeystore(KeyStore keystore, char[] password) private byte[]readPKCS(InputStream pdf) private byte[]sign(InputStream content, Certificate[] certChain) voidsignPDF(URI uri, OutputStream os)
-
Field Details
-
SIZE_OF_CONTENTS
private static final int SIZE_OF_CONTENTS- See Also:
-
TEMP_URI_GENERATOR
private static final org.apache.xmlgraphics.io.TempResourceURIGenerator TEMP_URI_GENERATOR -
perms
-
root
-
privateKey
-
startOfDocMDP
private long startOfDocMDP -
startOfContents
private long startOfContents -
userAgent
-
tempURI
-
signParams
-
-
Constructor Details
-
PDFSignature
-
-
Method Details
-
add
-
signPDF
- Throws:
IOException
-
getTempOS
- Throws:
IOException
-
getTempIS
- Throws:
IOException
-
readPKCS
- Throws:
IOException
-
readKeystore
private Certificate[] readKeystore(KeyStore keystore, char[] password) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityExceptionIOException
-
sign
private byte[] sign(InputStream content, Certificate[] certChain) throws GeneralSecurityException, org.bouncycastle.operator.OperatorException, org.bouncycastle.cms.CMSException, IOException - Throws:
GeneralSecurityExceptionorg.bouncycastle.operator.OperatorExceptionorg.bouncycastle.cms.CMSExceptionIOException
-