LoginService
HashLoginService
, JDBCLoginService
public 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 LoginService
LoginService.getName()
public void setIdentityService(IdentityService identityService)
setIdentityService
in interface LoginService
identityService
- the identityService to setpublic void setName(java.lang.String name)
name
- the name to setpublic java.lang.String toString()
toString
in class java.lang.Object
public UserIdentity login(java.lang.String username, java.lang.Object credentials, ServletRequest request)
LoginService
login
in interface LoginService
username
- The user namecredentials
- The users credentialsrequest
- TODOLoginService.login(java.lang.String, java.lang.Object, javax.servlet.ServletRequest)
public boolean validate(UserIdentity user)
LoginService
LoginService.login(String, Object, ServletRequest)
is still valid.validate
in interface LoginService
user
- The user to validateLoginService.validate(org.eclipse.jetty.server.UserIdentity)
public IdentityService getIdentityService()
LoginService
getIdentityService
in interface LoginService
LoginService.getIdentityService()
public void logout(UserIdentity user)
logout
in interface LoginService
LoginService.logout(org.eclipse.jetty.server.UserIdentity)
public boolean isFullValidate()
public void setFullValidate(boolean fullValidate)
Copyright © 1995–2018 Webtide. All rights reserved.