站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

JaccHelper - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.security.impl.jacc
Class JaccHelper

java.lang.Object
  extended byorg.jboss.portal.security.impl.jacc.JaccHelper

public final class JaccHelper
extends java.lang.Object

Helper class for JACC related operations.


Constructor Summary
JaccHelper()
           
 
Method Summary
static java.lang.String getPolicyContextID(JBossSecurityProvider securityProvider, java.lang.String permType, java.lang.String uri)
          Build the policy context id to use , based on the server config's domain and the provided handle
static java.security.ProtectionDomain getProtectionDomain(java.security.Principal[] principals)
          Get a protection domain to use in a policy check.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaccHelper

public JaccHelper()
Method Detail

getPolicyContextID

public static java.lang.String getPolicyContextID(JBossSecurityProvider securityProvider,
                                                  java.lang.String permType,
                                                  java.lang.String uri)
Build the policy context id to use , based on the server config's domain and the provided handle

Parameters:
securityProvider - the security provider that allows access to the portal server config
uri - the identifier of the portal resource to be checked for authorization rights
Returns:
a context id to use in policy context and authorization decisions

getProtectionDomain

public static java.security.ProtectionDomain getProtectionDomain(java.security.Principal[] principals)
Get a protection domain to use in a policy check.

Parameters:
principals - an array of Principals carying the role member ship information of the user to check access for
Returns:
a protection domain to use for policy implies checks