org.acegisecurity.ui.basicauth
public class BasicProcessingFilterEntryPoint extends java.lang.Object implements AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean
SecurityEnforcementFilter
to commence authentication via the BasicProcessingFilter
.Once a user agent is authenticated using BASIC authentication, logout requires that
the browser be closed or an unauthorized (401) header be sent. The simplest way of achieving the latter is to call
the commence(ServletRequest, ServletResponse, AuthenticationException)
method below. This will indicate to
the browser its credentials are no longer authorized, causing it to prompt the user to login again.
Constructor and Description |
---|
BasicProcessingFilterEntryPoint() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
AuthenticationException authException)
Commences an authentication scheme.
|
java.lang.String |
getRealmName() |
void |
setRealmName(java.lang.String realmName) |
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void commence(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, AuthenticationException authException) throws java.io.IOException, javax.servlet.ServletException
AuthenticationEntryPoint
SecurityEnforcementFilter
will populate the
HttpSession
attribute named
AuthenticationProcessingFilter.ACEGI_SECURITY_TARGET_URL_KEY
with the requested target URL before
calling this method.
Implementations should modify the headers on the ServletResponse
as necessary to
commence the authentication process.
commence
in interface AuthenticationEntryPoint
request
- that resulted in an AuthenticationException
response
- so that the user agent can begin authenticationauthException
- that caused the invocationjava.io.IOException
- DOCUMENT ME!javax.servlet.ServletException
- DOCUMENT ME!public java.lang.String getRealmName()
public void setRealmName(java.lang.String realmName)
Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.