|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.security.AbstractLogin
com.caucho.security.BasicLogin
public class BasicLogin
Implements the "basic" auth-method. Basic uses the HTTP authentication with WWW-Authenticate and SC_UNAUTHORIZE.
| Field Summary | |
|---|---|
protected java.lang.String |
_realm
|
| Fields inherited from class com.caucho.security.AbstractLogin |
|---|
_auth, _singleSignon, log |
| Fields inherited from interface com.caucho.security.Login |
|---|
LOGIN_PASSWORD, LOGIN_USER_NAME, LOGIN_USER_PRINCIPAL |
| Constructor Summary | |
|---|---|
BasicLogin()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthType()
Returns the authentication type. |
java.lang.String |
getRealmName()
Gets the realm. |
protected java.security.Principal |
getUserPrincipalImpl(HttpServletRequest request)
Returns the principal from a basic authentication |
boolean |
isLoginUsedForRequest(HttpServletRequest request)
Returns true if the request has a matching login. |
boolean |
isPasswordBased()
Returns true if username and password based authentication is supported. |
protected boolean |
isSavedUserValid(HttpServletRequest request,
java.security.Principal savedUser)
Returns the principal from a basic authentication |
protected void |
loginChallenge(HttpServletRequest request,
HttpServletResponse response)
Sends a challenge for basic authentication. |
void |
setRealmName(java.lang.String realm)
Sets the login realm. |
| Methods inherited from class com.caucho.security.AbstractLogin |
|---|
findSavedUser, getAuthenticator, getLoginPrincipalImpl, getSingleSignon, getUserPrincipal, init, isLogoutOnSessionTimeout, isSessionSaveLogin, isUserInRole, login, login, loginSuccessResponse, logout, logoutImpl, saveUser, sessionInvalidate, setAuthenticator, setLogoutOnSessionTimeout, setSessionSaveLogin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _realm
| Constructor Detail |
|---|
public BasicLogin()
| Method Detail |
|---|
public void setRealmName(java.lang.String realm)
public java.lang.String getRealmName()
public java.lang.String getAuthType()
getAuthType in interface LogingetAuthType in class AbstractLoginpublic boolean isPasswordBased()
Login
isPasswordBased in interface LoginisPasswordBased in class AbstractLoginBasicLoginpublic boolean isLoginUsedForRequest(HttpServletRequest request)
isLoginUsedForRequest in interface LoginisLoginUsedForRequest in class AbstractLoginprotected java.security.Principal getUserPrincipalImpl(HttpServletRequest request)
getUserPrincipalImpl in class AbstractLoginrequest -
protected boolean isSavedUserValid(HttpServletRequest request,
java.security.Principal savedUser)
isSavedUserValid in class AbstractLoginrequest - savedUser -
protected void loginChallenge(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException
loginChallenge in class AbstractLoginjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||