public class RCPermission extends BasicPermission
The permission name can be "target:default", which indicates the permission to use the default connection parameters.
The permission name can also be "target:<phone number>", which indicates the permission to use the specified phone number in the connection set-up (ConnectionRCInterface.setTarget(ConnectionParameters) method).
A wildcard may be used at the end of the permission name. In that case, all phone numbers starting with the number before the wildcard are included in the permission. A "+" may be used at the start of the phone number to indicate a phone number including the international country code.
Examples:
Note: ConnectionRCInterface.reserve(ResourceClient, Object) will throw a SecurityException if the application is not allowed to set-up a connection over the return channel at all (i.e., there is no valid target allowed).
| Constructor and Description |
|---|
RCPermission(String name)
Creates a new RCPermission with the specified name.
|
RCPermission(String name,
String actions)
Creates a new RCPermission object with the specified
name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
implies(Permission p)
Checks if this RCPermission "implies" the specified Permission.
|
equals, getActions, hashCode, newPermissionCollectioncheckGuard, getName, toStringpublic RCPermission(String name)
name - the name of the RCPermissionpublic RCPermission(String name, String actions)
name - the name of the RCPermissionactions - should be null.public boolean implies(Permission p)
More specifically, this returns true if and only if:
implies in class BasicPermissionp - The Permission to check against.Copyright © 2012 code4tv.com. All Rights Reserved.