|
||||||||||
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 |
---|
Fields inherited from class com.caucho.security.AbstractLogin |
---|
_auth, _singleSignon |
Fields inherited from interface com.caucho.security.Login |
---|
LOGIN_PASSWORD, LOGIN_USER, LOGIN_USER_NAME |
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 |
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 Login
getAuthType
in class AbstractLogin
public boolean isPasswordBased()
Login
isPasswordBased
in interface Login
isPasswordBased
in class AbstractLogin
BasicLogin
public boolean isLoginUsedForRequest(HttpServletRequest request)
isLoginUsedForRequest
in interface Login
isLoginUsedForRequest
in class AbstractLogin
protected java.security.Principal getUserPrincipalImpl(HttpServletRequest request)
getUserPrincipalImpl
in class AbstractLogin
request
- protected boolean isSavedUserValid(HttpServletRequest request, java.security.Principal savedUser)
isSavedUserValid
in class AbstractLogin
request
- savedUser
- protected void loginChallenge(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
loginChallenge
in class AbstractLogin
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |