Package waffle.servlet
Class NegotiateSecurityFilter
java.lang.Object
waffle.servlet.NegotiateSecurityFilter
- All Implemented Interfaces:
javax.servlet.Filter
- Direct Known Subclasses:
CorsAwareNegotiateSecurityFilter
A Negotiate (NTLM/Kerberos) Security Filter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(javax.servlet.ServletRequest sreq, javax.servlet.ServletResponse sres, javax.servlet.FilterChain chain) getAuth()
Windows auth provider.Principal format.Security filter providers.Principal format.void
init
(javax.servlet.FilterConfig filterConfig) boolean
True if guest login is allowed.boolean
Checks if is impersonate.void
setAuth
(IWindowsAuthProvider provider) Set Windows auth provider.void
setImpersonate
(boolean value) Enable/Disable impersonation.void
setPrincipalFormat
(String format) Set the principal format.void
setRoleFormat
(String format) Set the principal format.
-
Constructor Details
-
NegotiateSecurityFilter
public NegotiateSecurityFilter()Instantiates a new negotiate security filter.
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest sreq, javax.servlet.ServletResponse sres, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
setPrincipalFormat
Set the principal format.- Parameters:
format
- Principal format.
-
getPrincipalFormat
Principal format.- Returns:
- Principal format.
-
setRoleFormat
Set the principal format.- Parameters:
format
- Role format.
-
getRoleFormat
Principal format.- Returns:
- Role format.
-
getAuth
Windows auth provider.- Returns:
- IWindowsAuthProvider.
-
setAuth
Set Windows auth provider.- Parameters:
provider
- Class implements IWindowsAuthProvider.
-
isAllowGuestLogin
public boolean isAllowGuestLogin()True if guest login is allowed.- Returns:
- True if guest login is allowed, false otherwise.
-
setImpersonate
public void setImpersonate(boolean value) Enable/Disable impersonation.- Parameters:
value
- true to enable impersonation, false otherwise
-
isImpersonate
public boolean isImpersonate()Checks if is impersonate.- Returns:
- true if impersonation is enabled, false otherwise
-
getProviders
Security filter providers.- Returns:
- A collection of security filter providers.
-