public class SecurityHandlersManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SecurityHandlersManager |
getInstance()
Get the singleton instance.
|
SecurityHandler |
getSecurityHandler(ProtectionPolicy policy)
Get the security handler for the protection policy.
|
SecurityHandler |
getSecurityHandler(java.lang.String filterName)
Retrieve the appropriate SecurityHandler for a the given filter name.
|
void |
registerHandler(java.lang.String filterName,
java.lang.Class securityHandlerClass,
java.lang.Class protectionPolicyClass)
register a security handler.
|
public void registerHandler(java.lang.String filterName,
java.lang.Class securityHandlerClass,
java.lang.Class protectionPolicyClass)
throws BadSecurityHandlerException
filterName - The name of the filter.securityHandlerClass - Security Handler class to register.protectionPolicyClass - Protection Policy class to register.BadSecurityHandlerException - If there is an error registering the security handler.public static SecurityHandlersManager getInstance()
public SecurityHandler getSecurityHandler(ProtectionPolicy policy) throws BadSecurityHandlerException
policy - The policy to get the security handler for.BadSecurityHandlerException - If it is unable to create a SecurityHandler.public SecurityHandler getSecurityHandler(java.lang.String filterName) throws BadSecurityHandlerException
filterName - The filter name.BadSecurityHandlerException - If the security handler does not exist.