public class SecurityFilterProviderCollection extends Object
Constructor and Description |
---|
SecurityFilterProviderCollection(IWindowsAuthProvider auth)
Instantiates a new security filter provider collection.
|
SecurityFilterProviderCollection(SecurityFilterProvider[] providerArray)
Instantiates a new security filter provider collection.
|
SecurityFilterProviderCollection(String[] providerNames,
IWindowsAuthProvider auth)
Instantiates a new security filter provider collection.
|
Modifier and Type | Method and Description |
---|---|
IWindowsIdentity |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Filter.
|
SecurityFilterProvider |
getByClassName(String name)
Get a security provider by class name.
|
boolean |
isPrincipalException(javax.servlet.http.HttpServletRequest request)
Returns true if authentication still needs to happen despite an existing principal.
|
boolean |
isSecurityPackageSupported(String securityPackage)
Tests whether a specific security package is supported by any of the underlying providers.
|
void |
sendUnauthorized(javax.servlet.http.HttpServletResponse response)
Send authorization headers.
|
int |
size()
Number of providers.
|
public SecurityFilterProviderCollection(SecurityFilterProvider[] providerArray)
providerArray
- the provider arraypublic SecurityFilterProviderCollection(String[] providerNames, IWindowsAuthProvider auth)
providerNames
- the provider namesauth
- the authpublic SecurityFilterProviderCollection(IWindowsAuthProvider auth)
auth
- the authpublic boolean isSecurityPackageSupported(String securityPackage)
securityPackage
- Security package.public IWindowsIdentity doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- Http Requestresponse
- Http ResponseIOException
- on doFilter.public boolean isPrincipalException(javax.servlet.http.HttpServletRequest request)
request
- Http Requestpublic void sendUnauthorized(javax.servlet.http.HttpServletResponse response)
response
- Http Responsepublic int size()
public SecurityFilterProvider getByClassName(String name) throws ClassNotFoundException
name
- Class name.ClassNotFoundException
- when class not found.Copyright © 2010–2015 com.github.dblock. All rights reserved.