org.pdfbox.pdmodel.encryption

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » PDFBox 0.7.3 » org.pdfbox.pdmodel.encryption 
org.pdfbox.pdmodel.encryption
The encryption package will handle the PDF document security handlers and the functionality of pluggable security handlers.
Java Source File NameTypeComment
AccessPermission.javaClass This class represents the access permissions to a document. These permissions are specified in the PDF format specifications, they include:
  • print the document
  • modify the content of the document
  • copy or extract content of the document
  • add or modify annotations
  • fill in interactive form fields
  • extract text and graphics for accessibility to visually impaired people
  • assemble the document
  • print in degraded quality
This class can be used to protect a document by assigning access permissions to recipients.
BadSecurityHandlerException.javaClass This exception can be thrown by the SecurityHandlersManager class when a document required an unimplemented security handler to be opened.
DecryptionMaterial.javaClass This class represents data required to decrypt PDF documents.
PDEncryptionDictionary.javaClass This class is a specialized view of the encryption dictionary of a PDF document.
PDEncryptionManager.javaClass This class will handle loading of the different security handlers.
PDStandardEncryption.javaClass This class holds information that is related to the standard PDF encryption.
ProtectionPolicy.javaClass This class represents the protection policy to apply to a document.
PublicKeyDecryptionMaterial.javaClass This class holds necessary information to decrypt a PDF document protected by the public key security handler. To decrypt such a document, we need:
  • a valid X509 certificate which correspond to one of the recipient of the document
  • the private key corresponding to this certificate
  • the password to decrypt the private key if necessary
Objects of this class can be used with the openProtection method of PDDocument. The following example shows how to decrypt a document using a PKCS#12 certificate (typically files with a pfx extension).
 PDDocument doc = PDDocument.load(document_path);
 KeyStore ks = KeyStore.getInstance("PKCS12");
 ks.load(new FileInputStream(certificate_path), password.toCharArray());
 PublicKeyDecryptionMaterial dm = new PublicKeyDecryptionMaterial(ks, null, password);
 doc.openProtection(dm);
 
In this code sample certificate_path contains the path to the PKCS#12 certificate.
PublicKeyProtectionPolicy.javaClass This class represents the protection policy to use to protect a document with the public key security handler as described in the PDF specification 1.6 p104.
PublicKeyRecipient.javaClass Represents a recipient in the public key protection policy.
PublicKeySecurityHandler.javaClass This class implements the public key security handler described in the PDF specification.
SecurityHandler.javaClass This class represents a security handler as described in the PDF specifications. A security handler is responsible of documents protection.
SecurityHandlersManager.javaClass This class manages security handlers for the application.
StandardDecryptionMaterial.javaClass Represents the necessary information to decrypt a document protected by the standard security handler (password protection).
StandardProtectionPolicy.javaClass This class represents the protection policy to add to a document for password-based protection. The following example shows how to protect a PDF document with password.
StandardSecurityHandler.javaClass The class implements the standard security handler as decribed in the PDF specifications.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.