public final class SecurityHandlerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static SecurityHandlerFactory |
INSTANCE
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
SecurityHandler<ProtectionPolicy> |
newSecurityHandlerForFilter(String name)
Returns a new security handler for the given Filter name, or null none is
available.
|
SecurityHandler<ProtectionPolicy> |
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<ProtectionPolicy> newSecurityHandlerForPolicy(ProtectionPolicy policy)
policy
- the protection policy for which to create a security handlerpublic SecurityHandler<ProtectionPolicy> newSecurityHandlerForFilter(String name)
name
- the Filter name from the PDF encryption dictionaryRevision 4.1.0 / 20220624-0454