public final class SecurityHandlerFactory
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static SecurityHandlerFactory |
INSTANCE |
Singleton instance
|
Modifier and Type | Method | Description |
---|---|---|
SecurityHandler |
newSecurityHandlerForFilter(java.lang.String name) |
Returns a new security handler for the given Filter name, or null none is available.
|
SecurityHandler |
newSecurityHandlerForPolicy(ProtectionPolicy policy) |
Returns a new security handler for the given protection policy, or null none is available.
|
void |
registerHandler(java.lang.String name,
java.lang.Class<? extends SecurityHandler> securityHandler,
java.lang.Class<? extends ProtectionPolicy> protectionPolicy) |
Registers a security handler.
|
public static final SecurityHandlerFactory INSTANCE
public void registerHandler(java.lang.String name, java.lang.Class<? extends SecurityHandler> securityHandler, java.lang.Class<? extends ProtectionPolicy> protectionPolicy)
name
- the name of the filtersecurityHandler
- security handler class to registerprotectionPolicy
- protection policy class to registerpublic SecurityHandler newSecurityHandlerForPolicy(ProtectionPolicy policy)
policy
- the protection policy for which to create a security handlerpublic SecurityHandler newSecurityHandlerForFilter(java.lang.String name)
name
- the Filter name from the PDF encryption dictionaryCopyright © 2002–2018. All rights reserved.