|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.Permission | +--java.security.BasicPermission | +--javax.jdo.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.
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 StateManager for an instance of PersistenceCapable. The StateMananger has unlimited access to get and set persistent and transactional fields of the PersistenceCapable instance. | This is dangerous in that information (possibly confidential) normally unavailable would be accessible to malicious code. |
getMetadata | This allows getting metadata for any PersistenceCapable class that has registered with JDOImplHelper. | This is dangerous in that metadata information (possibly confidential) normally unavailable would be accessible to malicious code. |
Permission
,
BasicPermission
,
JDOImplHelper
,
PersistenceCapable
,
Serialized FormConstructor Summary | |
JDOPermission()
Construct a new instance of JDOPermission, with default "getMetadata". |
|
JDOPermission(java.lang.String name)
Constructs a JDOPermission with the specified name. |
|
JDOPermission(java.lang.String name,
java.lang.String actions)
Constructs a JDOPermission with the specified name and actions. |
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 |
Constructor Detail |
public JDOPermission()
public JDOPermission(java.lang.String name)
name
- the name of the JDOPermissionpublic JDOPermission(java.lang.String name, java.lang.String actions)
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 |