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 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
protected  IdentityService _identityService
           
protected  String _name
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
SpnegoLoginService()
           
SpnegoLoginService(String name)
           
SpnegoLoginService(String name, String config)
           
 
方法摘要
protected  void doStart()
           
 String getConfig()
           
 IdentityService getIdentityService()
          Get the IdentityService associated with this Login Service.
 String getName()
           
 UserIdentity login(String username, Object credentials)
          username will be null since the credentials will contain all the relevant info
 void logout(UserIdentity user)
           
 void setConfig(String config)
           
 void setIdentityService(IdentityService service)
          Set the IdentityService associated with this Login Service.
 void setName(String name)
           
 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
 

字段详细信息

_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 name
credentials - 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.