org.eclipse.jetty.security
类 SpnegoUserIdentity
java.lang.Object
org.eclipse.jetty.security.SpnegoUserIdentity
- 所有已实现的接口:
- UserIdentity
public class SpnegoUserIdentity
- extends Object
- implements UserIdentity
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpnegoUserIdentity
public SpnegoUserIdentity(Subject subject,
Principal principal,
List<String> roles)
getSubject
public Subject getSubject()
- 指定者:
- 接口
UserIdentity 中的 getSubject
- 返回:
- The user subject
getUserPrincipal
public Principal getUserPrincipal()
- 指定者:
- 接口
UserIdentity 中的 getUserPrincipal
- 返回:
- The user principal
isUserInRole
public boolean isUserInRole(String role,
UserIdentity.Scope scope)
- 从接口
UserIdentity 复制的描述
- Check if the user is in a role.
This call is used to satisfy authorization calls from
container code which will be using translated role names.
- 指定者:
- 接口
UserIdentity 中的 isUserInRole
- 参数:
role - A role name.
- 返回:
- True if the user can act in that role.
Copyright © 2013. All Rights Reserved.