|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.security.AbstractLogin
com.caucho.server.security.FormLogin
public class 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
|
protected java.lang.String |
_loginPage
|
static java.lang.String |
LOGIN_SAVED_PATH
|
static java.lang.String |
LOGIN_SAVED_QUERY
|
| Fields inherited from class com.caucho.server.security.AbstractLogin |
|---|
_auth, log |
| 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 |
setErrorPage(java.lang.String errorPage)
|
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. |
void |
setLoginPage(java.lang.String loginPage)
|
| Methods inherited from class com.caucho.server.security.AbstractLogin |
|---|
getAuthenticator, getUserPrincipal, isUserInRole, logout, setAuthenticator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)
throws ConfigException
ConfigExceptionpublic void setLoginPage(java.lang.String loginPage)
public java.lang.String getFormLoginPage()
public void setFormErrorPage(java.lang.String formErrorPage)
throws ConfigException
ConfigExceptionpublic void setErrorPage(java.lang.String errorPage)
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 AbstractLoginServletExceptionpublic 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 AbstractLoginrequest - servlet requestresponse - servlet response, in case any cookie need sending.application - servlet application
ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||