|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.MappedLoginService
public abstract class MappedLoginService
A login service that keeps UserIdentities in a concurrent map either as the source or a cache of the users.
| 嵌套类摘要 | |
|---|---|
static class |
MappedLoginService.Anonymous
|
static class |
MappedLoginService.KnownUser
|
static class |
MappedLoginService.RolePrincipal
|
static interface |
MappedLoginService.UserPrincipal
|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 | |
|---|---|
protected IdentityService |
_identityService
|
protected String |
_name
|
protected ConcurrentMap<String,UserIdentity> |
_users
|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 构造方法摘要 | |
|---|---|
protected |
MappedLoginService()
|
| 方法摘要 | |
|---|---|
protected void |
doStart()
|
protected void |
doStop()
|
IdentityService |
getIdentityService()
Get the identityService. |
String |
getName()
Get the name. |
ConcurrentMap<String,UserIdentity> |
getUsers()
Get the users. |
protected abstract UserIdentity |
loadUser(String username)
|
protected abstract void |
loadUsers()
|
UserIdentity |
login(String username,
Object credentials)
Login a user. |
void |
logout(UserIdentity identity)
|
UserIdentity |
putUser(String userName,
Credential credential,
String[] roles)
Put user into realm. |
protected UserIdentity |
putUser(String userName,
Object info)
Put user into realm. |
void |
removeUser(String username)
|
void |
setIdentityService(IdentityService identityService)
Set the identityService. |
void |
setName(String name)
Set the name. |
void |
setUsers(Map<String,UserIdentity> users)
Set the users. |
String |
toString()
|
boolean |
validate(UserIdentity user)
Validate a user identity. |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected IdentityService _identityService
protected String _name
protected final ConcurrentMap<String,UserIdentity> _users
| 构造方法详细信息 |
|---|
protected MappedLoginService()
| 方法详细信息 |
|---|
public String getName()
LoginService 中的 getNamepublic IdentityService getIdentityService()
LoginService 中的 getIdentityServicepublic ConcurrentMap<String,UserIdentity> getUsers()
public void setIdentityService(IdentityService identityService)
LoginService 中的 setIdentityServiceidentityService - the identityService to setpublic void setName(String name)
name - the name to setpublic void setUsers(Map<String,UserIdentity> users)
users - the users to set
protected void doStart()
throws Exception
AbstractLifeCycle 中的 doStartExceptionAbstractLifeCycle.doStart()
protected void doStop()
throws Exception
AbstractLifeCycle 中的 doStopExceptionpublic void logout(UserIdentity identity)
LoginService 中的 logoutpublic String toString()
Object 中的 toString
protected UserIdentity putUser(String userName,
Object info)
userName - User nameinfo - a UserIdentity instance, or a String password or Credential instance
public UserIdentity putUser(String userName,
Credential credential,
String[] roles)
userName - The user to addcredential - The users Credentialsroles - The users roles
public void removeUser(String username)
public UserIdentity login(String username,
Object credentials)
LoginService 复制的描述
LoginService 中的 loginusername - The user namecredentials - The users credentials
LoginService.login(java.lang.String, java.lang.Object)public boolean validate(UserIdentity user)
LoginService 复制的描述LoginService.login(String, Object) is still valid.
LoginService 中的 validateuser - The user to validate
protected abstract UserIdentity loadUser(String username)
protected abstract void loadUsers()
throws IOException
IOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||