org.eclipse.jetty.security
类 DefaultUserIdentity
java.lang.Object
org.eclipse.jetty.security.DefaultUserIdentity
- 所有已实现的接口:
- UserIdentity
public class DefaultUserIdentity
- extends Object
- implements UserIdentity
The default implementation of UserIdentity.
DefaultUserIdentity
public DefaultUserIdentity(Subject subject,
Principal userPrincipal,
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.
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
Copyright © 2013. All Rights Reserved.