|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.http.security.AbstractLogin | +--com.caucho.http.security.FormLogin
Used to authenticate users in a servlet request. Applications will implement the Authenticator interface with a bean for authentication.
Field Summary | |
protected java.lang.String |
errorPage
|
protected boolean |
formURIPriority
|
protected boolean |
internalForward
|
static java.lang.String |
LOGIN_SAVED_PATH
|
static java.lang.String |
LOGIN_SAVED_QUERY
|
protected java.lang.String |
loginPage
|
Fields inherited from class com.caucho.http.security.AbstractLogin |
auth, dbg |
Constructor Summary | |
FormLogin()
|
Method Summary | |
java.security.Principal |
authenticate(HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Logs a user in with a user name and a password. |
java.lang.String |
getAuthType()
Returns the authentication type. |
java.lang.String |
getFormErrorPage()
Gets the error page. |
java.lang.String |
getFormLoginPage()
Gets the login page. |
boolean |
getFormURIPriority()
Returns true if the form's j_uri has priority over the saved URL. |
boolean |
getInternalForward()
Returns true if a successful login allows an internal forward instead of a redirect. |
void |
init()
Initialize |
void |
setFormErrorPage(java.lang.String formErrorPage)
Sets the error page. |
void |
setFormLoginPage(java.lang.String formLoginPage)
Sets the login page. |
void |
setFormURIPriority(boolean formPriority)
True if the form's j_uri has priority over the saved URL. |
void |
setInternalForward(boolean internalForward)
Set true if a successful login allows an internal forward instead of a redirect. |
Methods inherited from class com.caucho.http.security.AbstractLogin |
getAuthenticator, getUserPrincipal, isUserInRole, logout, setAuthenticator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOGIN_SAVED_PATH
public static final java.lang.String LOGIN_SAVED_QUERY
protected java.lang.String loginPage
protected java.lang.String errorPage
protected boolean internalForward
protected boolean formURIPriority
Constructor Detail |
public FormLogin()
Method Detail |
public void setFormLoginPage(java.lang.String formLoginPage)
public java.lang.String getFormLoginPage()
public void setFormErrorPage(java.lang.String formErrorPage)
public java.lang.String getFormErrorPage()
public boolean getInternalForward()
public void setInternalForward(boolean internalForward)
public boolean getFormURIPriority()
public void setFormURIPriority(boolean formPriority)
public void init() throws ServletException
init
in class AbstractLogin
public java.lang.String getAuthType()
getAuthType
in class AbstractLogin
public java.security.Principal authenticate(HttpServletRequest request, HttpServletResponse response, ServletContext application) throws ServletException, java.io.IOException
authenticate
in class AbstractLogin
request
- servlet requestresponse
- servlet response, in case any cookie need sending.application
- servlet application
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |