Class ResponseHeaderSettingKerberosAuthenticationSuccessHandler
java.lang.Object
org.springframework.security.kerberos.web.authentication.ResponseHeaderSettingKerberosAuthenticationSuccessHandler
- All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationSuccessHandler
public class ResponseHeaderSettingKerberosAuthenticationSuccessHandler
extends Object
implements org.springframework.security.web.authentication.AuthenticationSuccessHandler
Adds a WWW-Authenticate (or other) header to the response following
successful authentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAuthenticationSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) void
setHeaderName
(String headerName) Sets the name of the header to set.void
setHeaderPrefix
(String headerPrefix) Sets the value of the prefix for the encoded response token value.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
-
ResponseHeaderSettingKerberosAuthenticationSuccessHandler
public ResponseHeaderSettingKerberosAuthenticationSuccessHandler()
-
-
Method Details
-
setHeaderName
Sets the name of the header to set. By default this is 'WWW-Authenticate'.- Parameters:
headerName
- the www authenticate header name
-
setHeaderPrefix
Sets the value of the prefix for the encoded response token value. By default this is 'Negotiate '.- Parameters:
headerPrefix
- the negotiate prefix
-
onAuthenticationSuccess
public void onAuthenticationSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws IOException, jakarta.servlet.ServletException - Specified by:
onAuthenticationSuccess
in interfaceorg.springframework.security.web.authentication.AuthenticationSuccessHandler
- Throws:
IOException
jakarta.servlet.ServletException
-