Package security.handler
Class SpnegoAuthenticationHandler
java.lang.Object
security.handler.SpnegoAuthenticationHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationFailureHandler
,org.springframework.security.web.authentication.AuthenticationSuccessHandler
@Component
@AuthMethodConditional(KERBEROS)
public class SpnegoAuthenticationHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler, org.springframework.security.web.authentication.AuthenticationFailureHandler
-
Constructor Summary
ConstructorsConstructorDescriptionSpnegoAuthenticationHandler
(AuthenticationHelper authenticationHelper, KerberosUserNameProvider kerberosUserNameProvider, LoginCredentialsService loginCredentialsService, JwtTokenService jwtTokenService, AuthenticationBundle authenticationBundle) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthenticationFailure
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) void
onAuthenticationSuccess
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
onAuthenticationSuccess
-
Constructor Details
-
SpnegoAuthenticationHandler
@Autowired public SpnegoAuthenticationHandler(AuthenticationHelper authenticationHelper, KerberosUserNameProvider kerberosUserNameProvider, LoginCredentialsService loginCredentialsService, JwtTokenService jwtTokenService, AuthenticationBundle authenticationBundle)
-
-
Method Details
-
onAuthenticationSuccess
public void onAuthenticationSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) - Specified by:
onAuthenticationSuccess
in interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler
-
onAuthenticationFailure
public void onAuthenticationFailure(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException exception) - Specified by:
onAuthenticationFailure
in interfaceorg.springframework.security.web.authentication.AuthenticationFailureHandler
-