org.eclipse.jetty.security
类 SpnegoLoginService
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.security.SpnegoLoginService
- 所有已实现的接口:
- LoginService, LifeCycle
public class SpnegoLoginService
- extends AbstractLifeCycle
- implements LoginService
| 从类 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 |
_identityService
protected IdentityService _identityService
_name
protected String _name
SpnegoLoginService
public SpnegoLoginService()
SpnegoLoginService
public SpnegoLoginService(String name)
SpnegoLoginService
public SpnegoLoginService(String name,
String config)
getName
public String getName()
- 指定者:
- 接口
LoginService 中的 getName
- 返回:
- Get the name of the login service (aka Realm name)
setName
public void setName(String name)
getConfig
public String getConfig()
setConfig
public void setConfig(String config)
doStart
protected void doStart()
throws Exception
- 覆盖:
- 类
AbstractLifeCycle 中的 doStart
- 抛出:
Exception
login
public UserIdentity login(String username,
Object credentials)
- username will be null since the credentials will contain all the relevant info
- 指定者:
- 接口
LoginService 中的 login
- 参数:
username - The user namecredentials - The users credentials
- 返回:
- A UserIdentity if the credentials matched, otherwise null
validate
public boolean validate(UserIdentity user)
- 从接口
LoginService 复制的描述
- Validate a user identity.
Validate that a UserIdentity previously created by a call
to
LoginService.login(String, Object) is still valid.
- 指定者:
- 接口
LoginService 中的 validate
- 参数:
user - The user to validate
- 返回:
- true if authentication has not been revoked for the user.
getIdentityService
public IdentityService getIdentityService()
- 从接口
LoginService 复制的描述
- Get the IdentityService associated with this Login Service.
- 指定者:
- 接口
LoginService 中的 getIdentityService
- 返回:
- the IdentityService associated with this Login Service.
setIdentityService
public void setIdentityService(IdentityService service)
- 从接口
LoginService 复制的描述
- Set the IdentityService associated with this Login Service.
- 指定者:
- 接口
LoginService 中的 setIdentityService
- 参数:
service - the IdentityService associated with this Login Service.
logout
public void logout(UserIdentity user)
- 指定者:
- 接口
LoginService 中的 logout
Copyright © 2013. All Rights Reserved.