public class BasicLogin extends AbstractLogin
_auth, _singleSignon
LOGIN_PASSWORD, LOGIN_USER, LOGIN_USER_NAME
Constructor and Description |
---|
BasicLogin() |
Modifier and Type | Method and Description |
---|---|
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.
|
findSavedUser, getAuthenticator, getLoginPrincipalImpl, getSingleSignon, getUserPrincipal, init, isLogoutOnSessionTimeout, isSessionSaveLogin, isUserInRole, login, login, loginSuccessResponse, logout, logoutImpl, saveUser, sessionInvalidate, setAuthenticator, setLogoutOnSessionTimeout, setSessionSaveLogin, toString
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