| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
java.security.BasicPermission
javax.jdo.spi.JDOPermission
public final class JDOPermission
The JDOPermission class is for operations that are reserved for 
 JDO implementations and should not be called by other code.  A
 JDOPermission is a named permission and has no
 actions.  There are two names currently defined.  Each named permission
 has a corresponding public static final field which contains an instance
 of the named permission.
 
The following table provides a summary description of what each named permission allows, and discusses the risks of granting code the permission.
| Permission Target Name | What the Permission Allows | Risks of Allowing this Permission | 
|---|---|---|
| setStateManager | This allows setting the StateManagerfor an instance ofPersistenceCapable. TheStateManagerhas unlimited access to get and set persistent and transactional fields of
   thePersistenceCapableinstance. | This is dangerous in that information (possibly confidential) normally unavailable would be accessible to malicious code. | 
| getMetadata | This allows getting metadata for any PersistenceCapableclass that has registered withJDOImplHelper. | This is dangerous in that metadata information (possibly confidential) normally unavailable would be accessible to malicious code. | 
| manageMetadata | This allows managing metadata for any PersistenceCapableclass that has registered withJDOImplHelper. | This is dangerous in that metadata information (possibly confidential) normally unavailable would be manageable (modifiable) by malicious code. | 
| closePersistenceManagerFactory | This allows closing a PersistenceManagerFactory,
       thereby releasing resources. | This is dangerous in that resources bound to the PersistenceManagerFactorywould be releaseable by
       malicious code. | 
Permission, 
BasicPermission, 
JDOImplHelper, 
PersistenceCapable, 
Serialized Form| Field Summary | |
|---|---|
| static JDOPermission | CLOSE_PERSISTENCE_MANAGER_FACTORYAn instance of JDOPermissionto be used forclosePersistenceManagerFactorypermission checking. | 
| static JDOPermission | GET_METADATAAn instance of JDOPermissionto be used forgetMetadatapermission checking. | 
| static JDOPermission | MANAGE_METADATAAn instance of JDOPermissionto be used formanageMetadatapermission checking. | 
| static JDOPermission | SET_STATE_MANAGERAn instance of JDOPermissionto be used forsetStateManagerpermission checking. | 
| Constructor Summary | |
|---|---|
| JDOPermission(java.lang.String name)Constructs a JDOPermissionwith the specified name. | |
| JDOPermission(java.lang.String name,
              java.lang.String actions)Constructs a JDOPermissionwith the specified name and 
 actions. | |
| Method Summary | 
|---|
| Methods inherited from class java.security.BasicPermission | 
|---|
| equals, getActions, hashCode, implies, newPermissionCollection | 
| Methods inherited from class java.security.Permission | 
|---|
| checkGuard, getName, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final JDOPermission GET_METADATA
JDOPermission to be used for
 getMetadata permission checking.
public static final JDOPermission MANAGE_METADATA
JDOPermission to be used for
 manageMetadata permission checking.
public static final JDOPermission SET_STATE_MANAGER
JDOPermission to be used for
 setStateManager permission checking.
public static final JDOPermission CLOSE_PERSISTENCE_MANAGER_FACTORY
JDOPermission to be used for
 closePersistenceManagerFactory permission checking.
| Constructor Detail | 
|---|
public JDOPermission(java.lang.String name)
JDOPermission with the specified name.
name - the name of the JDOPermission
public JDOPermission(java.lang.String name,
                     java.lang.String actions)
JDOPermission with the specified name and 
 actions.  The actions should be null; they are ignored. 
 This constructor exists for use by the Policy object
 to instantiate new Permission objects.
name - the name of the JDOPermissionactions - should be null.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||