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 Details

    • ResponseHeaderSettingKerberosAuthenticationSuccessHandler

      public ResponseHeaderSettingKerberosAuthenticationSuccessHandler()
  • Method Details

    • setHeaderName

      public void setHeaderName(String headerName)
      Sets the name of the header to set. By default this is 'WWW-Authenticate'.
      Parameters:
      headerName - the www authenticate header name
    • setHeaderPrefix

      public void setHeaderPrefix(String headerPrefix)
      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 interface org.springframework.security.web.authentication.AuthenticationSuccessHandler
      Throws:
      IOException
      jakarta.servlet.ServletException