org.eclipse.jetty.plus.jaas
类 StrictRoleCheckPolicy

java.lang.Object
  继承者 org.eclipse.jetty.plus.jaas.StrictRoleCheckPolicy
所有已实现的接口:
RoleCheckPolicy

public class StrictRoleCheckPolicy
extends Object
implements RoleCheckPolicy

StrictRoleCheckPolicy

Enforces that if a runAsRole is present, then the role to check must be the same as that runAsRole and the set of static roles is ignored.


构造方法摘要
StrictRoleCheckPolicy()
           
 
方法摘要
 boolean checkRole(String roleName, Principal runAsRole, Group roles)
          Check if a role is either a runAsRole or in a set of roles
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

StrictRoleCheckPolicy

public StrictRoleCheckPolicy()
方法详细信息

checkRole

public boolean checkRole(String roleName,
                         Principal runAsRole,
                         Group roles)
从接口 RoleCheckPolicy 复制的描述
Check if a role is either a runAsRole or in a set of roles

指定者:
接口 RoleCheckPolicy 中的 checkRole
参数:
roleName - the role to check
runAsRole - a pushed role (can be null)
roles - a Group whose Principals are role names
返回:
true if role equals runAsRole or is a member of roles.


Copyright © 2013. All Rights Reserved.