| java.lang.Object org.pdfbox.pdmodel.encryption.SecurityHandlersManager
SecurityHandlersManager | public class SecurityHandlersManager (Code) | | This class manages security handlers for the application. It follows the singleton pattern.
To be usable, security managers must be registered in it. Security managers are retrieved by
the application when necessary.
author: Benoit Guillon (benoit.guillon@snv.jussieu.fr) version: $Revision: 1.3 $ |
getSecurityHandler | public SecurityHandler getSecurityHandler(String filterName) throws BadSecurityHandlerException(Code) | | Retrieve the appropriate SecurityHandler for a the given filter name.
The filter name is an entry of the encryption dictionary of an encrypted document.
Parameters: filterName - The filter name. The appropriate SecurityHandler if it exists. throws: BadSecurityHandlerException - If the security handler does not exist. |
registerHandler | public void registerHandler(String filterName, Class securityHandlerClass, Class protectionPolicyClass) throws BadSecurityHandlerException(Code) | | register a security handler.
If the security handler was already registered an exception is thrown.
If another handler was previously registered for the same filter name or
for the same policy name, an exception is thrown
Parameters: filterName - The name of the filter. Parameters: securityHandlerClass - Security Handler class to register. Parameters: protectionPolicyClass - Protection Policy class to register. throws: BadSecurityHandlerException - If there is an error registering the security handler. |
|
|