LoginServiceHashLoginService, JDBCLoginServicepublic abstract class AbstractLoginService extends org.eclipse.jetty.util.component.AbstractLifeCycle implements LoginService
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AbstractLoginService.RolePrincipal |
RolePrincipal
|
static class |
AbstractLoginService.UserPrincipal |
UserPrincipal
|
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
_fullValidate |
|
protected IdentityService |
_identityService |
|
protected java.lang.String |
_name |
| Constructor | Description |
|---|---|
AbstractLoginService() |
| Modifier and Type | Method | Description |
|---|---|---|
IdentityService |
getIdentityService() |
Get the IdentityService associated with this Login Service.
|
java.lang.String |
getName() |
|
boolean |
isFullValidate() |
|
protected abstract java.lang.String[] |
loadRoleInfo(AbstractLoginService.UserPrincipal user) |
|
protected abstract AbstractLoginService.UserPrincipal |
loadUserInfo(java.lang.String username) |
|
UserIdentity |
login(java.lang.String username,
java.lang.Object credentials,
ServletRequest request) |
Login a user.
|
void |
logout(UserIdentity user) |
|
void |
setFullValidate(boolean fullValidate) |
|
void |
setIdentityService(IdentityService identityService) |
Set the identityService.
|
void |
setName(java.lang.String name) |
Set the name.
|
java.lang.String |
toString() |
|
boolean |
validate(UserIdentity user) |
Validate a user identity.
|
protected IdentityService _identityService
protected java.lang.String _name
protected boolean _fullValidate
protected abstract java.lang.String[] loadRoleInfo(AbstractLoginService.UserPrincipal user)
protected abstract AbstractLoginService.UserPrincipal loadUserInfo(java.lang.String username)
public java.lang.String getName()
getName in interface LoginServiceLoginService.getName()public void setIdentityService(IdentityService identityService)
setIdentityService in interface LoginServiceidentityService - the identityService to setpublic void setName(java.lang.String name)
name - the name to setpublic java.lang.String toString()
toString in class org.eclipse.jetty.util.component.AbstractLifeCyclepublic UserIdentity login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
LoginServicelogin in interface LoginServiceusername - The user namecredentials - The users credentialsrequest - TODOLoginService.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)public boolean validate(UserIdentity user)
LoginServiceLoginService.login(String, Object, ServletRequest) is still valid.validate in interface LoginServiceuser - The user to validateLoginService.validate(org.eclipse.jetty.server.UserIdentity)public IdentityService getIdentityService()
LoginServicegetIdentityService in interface LoginServiceLoginService.getIdentityService()public void logout(UserIdentity user)
logout in interface LoginServiceLoginService.logout(org.eclipse.jetty.server.UserIdentity)public boolean isFullValidate()
public void setFullValidate(boolean fullValidate)
Copyright © 1995–2018 Webtide. All rights reserved.