Class DelegatingAuthenticationEntryPoint

java.lang.Object
org.opencastproject.kernel.security.DelegatingAuthenticationEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class DelegatingAuthenticationEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
An AuthenticationEntryPoint that delegates to a default implementation unless a "X-Requested-Auth" header with a value of "Digest".
  • Field Details

    • REQUESTED_AUTH_HEADER

      public static final String REQUESTED_AUTH_HEADER
      See Also:
    • DIGEST_AUTH

      public static final String DIGEST_AUTH
      See Also:
    • BASIC_AUTH

      public static final String BASIC_AUTH
      See Also:
    • INITIAL_REQUEST_PATH

      public static final String INITIAL_REQUEST_PATH
      See Also:
    • userEntryPoint

      protected org.springframework.security.web.AuthenticationEntryPoint userEntryPoint
    • digestAuthenticationEntryPoint

      protected org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint digestAuthenticationEntryPoint
  • Constructor Details

    • DelegatingAuthenticationEntryPoint

      public DelegatingAuthenticationEntryPoint()
  • Method Details

    • commence

      public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, javax.servlet.ServletException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException
      javax.servlet.ServletException
      See Also:
      • AuthenticationEntryPoint.commence(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.security.core.AuthenticationException)
    • setUserEntryPoint

      public void setUserEntryPoint(org.springframework.security.web.AuthenticationEntryPoint userEntryPoint)
      Parameters:
      userEntryPoint - the user entrypoint to set
    • setDigestAuthenticationEntryPoint

      public void setDigestAuthenticationEntryPoint(org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint digestAuthenticationEntryPoint)
      Parameters:
      digestAuthenticationEntryPoint - the digest auth entrypoint to set
    • setBasicAuthenticationEntryPoint

      public void setBasicAuthenticationEntryPoint(org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint basicAuthenticationEntryPoint)
      Parameters:
      basicAuthenticationEntryPoint - the basic auth entrypoint to set