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
ConstructorsConstructorDescriptionAuthenticationFilter(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, WebsocketMessagingService websocketMessagingService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, WebsocketMessagingService websocketMessagingService)
-
-
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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-