public class CAPermission extends BasicPermission
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 and Description |
|---|
CAPermission(String name)
Creates a new CAPermission with the specified name.
|
CAPermission(String name,
String actions)
Creates a new CAPermission object with the specified
name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(Permission p)
Checks if the specified permission is "implied" by this object.
|
equals, getActions, hashCode, newPermissionCollectioncheckGuard, getName, toStringpublic CAPermission(String name)
name - the name of the CAPermissionpublic CAPermission(String name, String actions)
name - the name of the CAPermissionactions - should be null.public boolean implies(Permission p)
implies in class BasicPermissionp - the permission to check against.Copyright © 2012 code4tv.com. All Rights Reserved.