public class BasicLogin extends AbstractLogin
_auth, _singleSignonLOGIN_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, toStringpublic 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()
LoginisPasswordBased 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