org.jboss.deployment.security
Class JaccPolicyUtil

java.lang.Object
  extended by org.jboss.deployment.security.JaccPolicyUtil

public class JaccPolicyUtil
extends Object

Static class with common methods used for jacc deployment processing TODO: Remove this class when the MC has the util methods

Since:
Dec 11, 2006
Version:
$Revision: 85945 $
Author:
Anil Saldhana, adrian@jboss.org

Field Summary
static String IGNORE_ME_NAME
           
 
Constructor Summary
JaccPolicyUtil()
           
 
Method Summary
static void createPermissions(javax.security.jacc.PolicyConfiguration policyConfiguration, Object metadata)
          Create the JACC Permissions and add to the policy configuration passed
static List<String> getJaccDeployments(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, Collection<String> ignoreSuffix)
          Given a deployment unit, get all the deployments underneath that are valid Jacc deployments (ejbs,wars)
static boolean isEJBDeployment(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit du)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE_ME_NAME

public static String IGNORE_ME_NAME
Constructor Detail

JaccPolicyUtil

public JaccPolicyUtil()
Method Detail

getJaccDeployments

public static List<String> getJaccDeployments(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                                              Collection<String> ignoreSuffix)
Given a deployment unit, get all the deployments underneath that are valid Jacc deployments (ejbs,wars)

Parameters:
unit -
ignoreSuffix - (ignore "xml","beans", "deployer" etc)
Returns:

isEJBDeployment

public static boolean isEJBDeployment(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit du)

createPermissions

public static void createPermissions(javax.security.jacc.PolicyConfiguration policyConfiguration,
                                     Object metadata)
                              throws javax.security.jacc.PolicyContextException
Create the JACC Permissions and add to the policy configuration passed

Parameters:
policyConfiguration -
metadata -
Throws:
javax.security.jacc.PolicyContextException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.