org.objectweb.jonas_lib.security
Class AbsPermissionManager

java.lang.Object
  extended byorg.objectweb.jonas_lib.security.AbsPermissionManager
Direct Known Subclasses:
PermissionManager, PermissionManager

public abstract class AbsPermissionManager
extends java.lang.Object

Defines an abstract PermissionManager class which will manage JACC permissions for an ejbjar, webapp, etc.

Author:
Florent Benoit

Field Summary
protected  java.lang.String contextId
          Context ID
protected static java.security.Policy policy
          Policy to use
protected  javax.security.jacc.PolicyConfiguration policyConfiguration
          JACC Policy configuration
 
Constructor Summary
AbsPermissionManager(java.lang.String contextId)
          Default Constructor
 
Method Summary
 void commit()
          Commit the Policy Configuration
 void delete()
          Delete this object
protected abstract  void resetDeploymentDesc()
          Reset Deployment Descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policyConfiguration

protected javax.security.jacc.PolicyConfiguration policyConfiguration
JACC Policy configuration


contextId

protected java.lang.String contextId
Context ID


policy

protected static java.security.Policy policy
Policy to use

Constructor Detail

AbsPermissionManager

public AbsPermissionManager(java.lang.String contextId)
                     throws PermissionManagerException
Default Constructor

Parameters:
contextId - context ID used for PolicyContext
Throws:
PermissionManagerException - if permissions can't be set
Method Detail

delete

public void delete()
            throws PermissionManagerException
Delete this object

Throws:
PermissionManagerException

commit

public void commit()
            throws PermissionManagerException
Commit the Policy Configuration

Throws:
PermissionManagerException - if commit can't be done

resetDeploymentDesc

protected abstract void resetDeploymentDesc()
Reset Deployment Descriptor