Class AuthenticationFilter
java.lang.Object
ch.tocco.nice2.web.core.impl.auth.AuthenticationFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
Filter doing authentication of the current request.
Reads credentials from the request and attempts to authenticate the user.
If no credentials have been given it will authenticate the anonymous user.
So after this filter there will be a valid SecurityContext
on the
thread.
-
Constructor Summary
ConstructorDescriptionAuthenticationFilter
(org.slf4j.Logger log, ContextManager contextManager, CredentialsRetrieverService credentialsRetrieverService, BusinessUnitRequestService businessUnitRequestService, Authenticator authenticator, SecurityManager securityManager, SessionManager sessionManager, ClientCache clientCache, BusinessUnitManager businessUnitManager, PrincipalManager principalManager, RuleRoleService ruleRoleService, org.springframework.context.ApplicationEventPublisher eventPublisher, QueryBuilderFactory queryBuilderFactory, WidgetDomainHelperService widgetDomainHelperService, CookieService cookieService, RuleProviderService ruleProviderService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.Filter
destroy, init
-
Constructor Details
-
AuthenticationFilter
@Lazy public AuthenticationFilter(org.slf4j.Logger log, ContextManager contextManager, CredentialsRetrieverService credentialsRetrieverService, BusinessUnitRequestService businessUnitRequestService, Authenticator authenticator, SecurityManager securityManager, SessionManager sessionManager, ClientCache clientCache, BusinessUnitManager businessUnitManager, PrincipalManager principalManager, RuleRoleService ruleRoleService, org.springframework.context.ApplicationEventPublisher eventPublisher, QueryBuilderFactory queryBuilderFactory, WidgetDomainHelperService widgetDomainHelperService, CookieService cookieService, RuleProviderService ruleProviderService)
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-