|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.plus.jaas.JAASLoginService
public class JAASLoginService
JAASLoginService
| 嵌套类摘要 |
|---|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 | |
|---|---|
protected String |
_callbackHandlerClass
|
protected JAASUserPrincipal |
_defaultUser
|
protected IdentityService |
_identityService
|
protected String |
_loginModuleName
|
protected String |
_realmName
|
protected String[] |
_roleClassNames
|
static String |
DEFAULT_ROLE_CLASS_NAME
|
static String[] |
DEFAULT_ROLE_CLASS_NAMES
|
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 构造方法摘要 | |
|---|---|
JAASLoginService()
Constructor. |
|
JAASLoginService(String name)
Constructor. |
|
| 方法摘要 | |
|---|---|
protected void |
doStart()
|
IdentityService |
getIdentityService()
Get the identityService. |
String |
getName()
Get the name of the realm. |
String[] |
getRoleClassNames()
|
UserIdentity |
login(String username,
Object credentials)
Login a user. |
void |
logout(UserIdentity user)
|
void |
setCallbackHandlerClass(String classname)
|
void |
setIdentityService(IdentityService identityService)
Set the identityService. |
void |
setLoginModuleName(String name)
Set the name to use to index into the config file of LoginModules. |
void |
setName(String name)
Set the name of the realm |
void |
setRoleClassNames(String[] classnames)
|
boolean |
validate(UserIdentity user)
Validate a user identity. |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, doStop, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static String DEFAULT_ROLE_CLASS_NAME
public static String[] DEFAULT_ROLE_CLASS_NAMES
protected String[] _roleClassNames
protected String _callbackHandlerClass
protected String _realmName
protected String _loginModuleName
protected JAASUserPrincipal _defaultUser
protected IdentityService _identityService
| 构造方法详细信息 |
|---|
public JAASLoginService()
public JAASLoginService(String name)
name - the name of the realm| 方法详细信息 |
|---|
public String getName()
LoginService 中的 getNamepublic void setName(String name)
name - a String valuepublic IdentityService getIdentityService()
LoginService 中的 getIdentityServicepublic void setIdentityService(IdentityService identityService)
LoginService 中的 setIdentityServiceidentityService - the identityService to setpublic void setLoginModuleName(String name)
name - a String valuepublic void setCallbackHandlerClass(String classname)
public void setRoleClassNames(String[] classnames)
public String[] getRoleClassNames()
protected void doStart()
throws Exception
AbstractLifeCycle 中的 doStartExceptionAbstractLifeCycle.doStart()
public UserIdentity login(String username,
Object credentials)
LoginService 复制的描述
LoginService 中的 loginusername - The user namecredentials - The users credentials
public boolean validate(UserIdentity user)
LoginService 复制的描述LoginService.login(String, Object) is still valid.
LoginService 中的 validateuser - The user to validate
public void logout(UserIdentity user)
LoginService 中的 logout
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||