public class SpnegoLoginService extends org.eclipse.jetty.util.component.AbstractLifeCycle implements LoginService
| 限定符和类型 | 字段和说明 |
|---|---|
protected IdentityService |
_identityService |
protected String |
_name |
| 构造器和说明 |
|---|
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() |
org.eclipse.jetty.server.UserIdentity |
login(String username,
Object credentials,
javax.servlet.ServletRequest request)
username will be null since the credentials will contain all the relevant info
|
void |
logout(org.eclipse.jetty.server.UserIdentity user) |
void |
setConfig(String config) |
void |
setIdentityService(IdentityService service)
Set the IdentityService associated with this Login Service.
|
void |
setName(String name) |
boolean |
validate(org.eclipse.jetty.server.UserIdentity user)
Validate a user identity.
|
protected IdentityService _identityService
protected String _name
public SpnegoLoginService()
public SpnegoLoginService(String name)
public String getName()
getName 在接口中 LoginServicepublic void setName(String name)
public String getConfig()
public void setConfig(String config)
protected void doStart()
throws Exception
doStart 在类中 org.eclipse.jetty.util.component.AbstractLifeCycleExceptionpublic org.eclipse.jetty.server.UserIdentity login(String username, Object credentials, javax.servlet.ServletRequest request)
login 在接口中 LoginServiceusername - The user namecredentials - The users credentialsrequest - TODOpublic boolean validate(org.eclipse.jetty.server.UserIdentity user)
LoginServiceLoginService.login(String, Object, ServletRequest) is still valid.validate 在接口中 LoginServiceuser - The user to validatepublic IdentityService getIdentityService()
LoginServicegetIdentityService 在接口中 LoginServicepublic void setIdentityService(IdentityService service)
LoginServicesetIdentityService 在接口中 LoginServiceservice - the IdentityService associated with this Login Service.public void logout(org.eclipse.jetty.server.UserIdentity user)
logout 在接口中 LoginServiceCopyright © 2017. All rights reserved.