|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
public class AuthenticationProcessingFilterEntryPoint
Used by the SecurityEnforcementFilter to commence
authentication via the AuthenticationProcessingFilter. This object
holds the location of the login form, relative to the web app context path,
and is used to commence a redirect to that form.
By setting the forceHttps property to true, you may configure the
class to force the protocol used for the login form to be
HTTPS, even if the original intercepted request for a resource
used the HTTP protocol. When this happens, after a successful
login (via HTTPS), the original resource will still be accessed as HTTP,
via the original request URL. For the forced HTTPS feature to work, the
PortMapper is consulted to determine the HTTP:HTTPS pairs.
| Constructor Summary | |
|---|---|
AuthenticationProcessingFilterEntryPoint()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
AuthenticationException authException)
Commences an authentication scheme. |
boolean |
getForceHttps()
|
String |
getLoginFormUrl()
|
PortMapper |
getPortMapper()
|
PortResolver |
getPortResolver()
|
void |
setForceHttps(boolean forceHttps)
Set to true to force login form access to be via https. |
void |
setLoginFormUrl(String loginFormUrl)
The URL where the AuthenticationProcessingFilter login page
can be found. |
void |
setPortMapper(PortMapper portMapper)
|
void |
setPortResolver(PortResolver portResolver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationProcessingFilterEntryPoint()
| Method Detail |
|---|
public void setForceHttps(boolean forceHttps)
https, then
forceHttps - public boolean getForceHttps()
public void setLoginFormUrl(String loginFormUrl)
AuthenticationProcessingFilter login page
can be found. Should be relative to the web-app context path, and
include a leading /
loginFormUrl - public String getLoginFormUrl()
public void setPortMapper(PortMapper portMapper)
public PortMapper getPortMapper()
public void setPortResolver(PortResolver portResolver)
public PortResolver getPortResolver()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public void commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
AuthenticationException authException)
throws 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 AuthenticationEntryPointrequest - that resulted in an AuthenticationExceptionresponse - so that the user agent can begin authenticationauthException - that caused the invocation
IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||