Package waffle.servlet.spi
Class SecurityFilterProviderCollection
java.lang.Object
waffle.servlet.spi.SecurityFilterProviderCollection
A collection of security filter providers.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityFilterProviderCollection(String[] providerNames, IWindowsAuthProvider auth) Instantiates a new security filter provider collection.SecurityFilterProviderCollection(SecurityFilterProvider[] providerArray) Instantiates a new security filter provider collection.Instantiates a new security filter provider collection. -
Method Summary
Modifier and TypeMethodDescriptiondoFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Filter.getByClassName(String name) Get a security provider by class name.booleanisPrincipalException(javax.servlet.http.HttpServletRequest request) Returns true if authentication still needs to happen despite an existing principal.booleanisSecurityPackageSupported(String securityPackage) Tests whether a specific security package is supported by any of the underlying providers.voidsendUnauthorized(javax.servlet.http.HttpServletResponse response) Send authorization headers.intsize()Number of providers.
-
Constructor Details
-
SecurityFilterProviderCollection
Instantiates a new security filter provider collection.- Parameters:
providerArray- the provider array
-
SecurityFilterProviderCollection
Instantiates a new security filter provider collection.- Parameters:
providerNames- the provider namesauth- the auth
-
SecurityFilterProviderCollection
Instantiates a new security filter provider collection.- Parameters:
auth- the auth
-
-
Method Details
-
isSecurityPackageSupported
Tests whether a specific security package is supported by any of the underlying providers.- Parameters:
securityPackage- Security package.- Returns:
- True if the security package is supported, false otherwise.
-
doFilter
public IWindowsIdentity doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException Filter.- Parameters:
request- Http Requestresponse- Http Response- Returns:
- Windows Identity or NULL.
- Throws:
IOException- on doFilter.
-
isPrincipalException
public boolean isPrincipalException(javax.servlet.http.HttpServletRequest request) Returns true if authentication still needs to happen despite an existing principal.- Parameters:
request- Http Request- Returns:
- True if authentication is required.
-
sendUnauthorized
public void sendUnauthorized(javax.servlet.http.HttpServletResponse response) Send authorization headers.- Parameters:
response- Http Response
-
size
public int size()Number of providers.- Returns:
- Number of providers.
-
getByClassName
Get a security provider by class name.- Parameters:
name- Class name.- Returns:
- A security provider instance.
- Throws:
ClassNotFoundException- when class not found.
-