|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
java.security.BasicPermission
org.dvb.net.ca.CAPermission
public class CAPermission
This class is for CA permissions. A CAPermission contains a name, but no actions list.
A CAPermission contains a range of CA system ids and a specific permission for that range of CA system ids. Instead of a range of CA system ids, the CAPermission can also refer to a single CA system id.
The name has the following syntax:
CASystemIdRange ":" Permission
where CASystemIdRange = CASystemId [ "-" CASystemId ] | "*"
and Permission = "MMI" | "buy" | "entitlementInfo" | "messagePassing" | "*"
Examples:
Note: The CASystemId is expressed as a hexadecimal value.
The permission "MMI" corresponds with the SecurityException on CAModuleManager.addMMIListener(). The permission "buy" corresponds with the SecurityException on CAModule.buyEntitlement(). The permission "entitlementInfo" corresponds with the SecurityException on CAModule.queryEntitlement() and CAModule.listEntitlements(). The permission "messagePassing" corresponds with CAModule.openMessageSession(MessageListener)
Constructor Summary | |
---|---|
CAPermission(java.lang.String name)
Creates a new CAPermission with the specified name. |
|
CAPermission(java.lang.String name,
java.lang.String actions)
Creates a new CAPermission object with the specified name. |
Method Summary | |
---|---|
boolean |
implies(java.security.Permission p)
Checks if the specified permission is "implied" by this object. |
Methods inherited from class java.security.BasicPermission |
---|
equals, getActions, hashCode, newPermissionCollection |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CAPermission(java.lang.String name)
name
- the name of the CAPermissionpublic CAPermission(java.lang.String name, java.lang.String actions)
name
- the name of the CAPermissionactions
- should be null.Method Detail |
---|
public boolean implies(java.security.Permission p)
implies
in class java.security.BasicPermission
p
- the permission to check against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |