- All Known Implementing Classes:
BasicSecurityFilterProvider,NegotiateSecurityFilterProvider
public interface SecurityFilterProvider
A security filter provider.
-
Method Summary
Modifier and TypeMethodDescriptiondoFilter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Execute filter.voidinitParameter(String parameterName, String parameterValue) Init a parameter.booleanisPrincipalException(jakarta.servlet.http.HttpServletRequest request) Returns true if despite having a principal authentication needs to happen.booleanisSecurityPackageSupported(String securityPackage) Tests whether a specific security package is supported.voidsendUnauthorized(jakarta.servlet.http.HttpServletResponse response) Add authentication method headers.
-
Method Details
-
sendUnauthorized
void sendUnauthorized(jakarta.servlet.http.HttpServletResponse response) Add authentication method headers.- Parameters:
response- Http Response.
-
isPrincipalException
boolean isPrincipalException(jakarta.servlet.http.HttpServletRequest request) Returns true if despite having a principal authentication needs to happen.- Parameters:
request- Http Request.- Returns:
- True if authentication is required.
-
doFilter
IWindowsIdentity doFilter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException Execute filter.- Parameters:
request- Http Servlet Request.response- Http Servlet Response.- Returns:
- A Windows identity in case authentication completed or NULL if not. Thrown exceptions should be caught and processed as 401 Access Denied.
- Throws:
IOException- on doFilter.
-
isSecurityPackageSupported
Tests whether a specific security package is supported.- Parameters:
securityPackage- Security package.- Returns:
- True if the security package is supported, false otherwise.
-
initParameter
-