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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) voidsetBasicAuthenticationEntryPoint(org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint basicAuthenticationEntryPoint) voidsetDigestAuthenticationEntryPoint(org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint digestAuthenticationEntryPoint) voidsetUserEntryPoint(org.springframework.security.web.AuthenticationEntryPoint userEntryPoint)
-
Field Details
-
REQUESTED_AUTH_HEADER
- See Also:
-
DIGEST_AUTH
- See Also:
-
BASIC_AUTH
- See Also:
-
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:
commencein interfaceorg.springframework.security.web.AuthenticationEntryPoint- Throws:
IOExceptionjavax.servlet.ServletException- See Also:
-
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
-