public final class SecurityHandlerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static SecurityHandlerFactory |
INSTANCE
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
SecurityHandler |
newSecurityHandlerForFilter(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(String name,
Class<? extends SecurityHandler> securityHandler,
Class<? extends ProtectionPolicy> protectionPolicy)
Registers a security handler.
|
public static final SecurityHandlerFactory INSTANCE
public void registerHandler(String name, Class<? extends SecurityHandler> securityHandler, 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(String name)
name
- the Filter name from the PDF encryption dictionaryCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.