|
||||||||||
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.rc.RCPermission
This class is for return channel set-up permissions. An RCPermission contains a name, but no actions list.
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 Summary | |
RCPermission(java.lang.String name)
Creates a new RCPermission with the specified name. |
|
RCPermission(java.lang.String name,
java.lang.String actions)
Creates a new RCPermission object with the specified name. |
Method Summary | |
boolean |
implies(java.security.Permission p)
Checks if this RCPermission "implies" the specified Permission. |
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 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RCPermission(java.lang.String name)
name
- the name of the RCPermissionpublic RCPermission(java.lang.String name, java.lang.String actions)
name
- the name of the RCPermissionactions
- should be null.Method Detail |
public boolean implies(java.security.Permission p)
More specifically, this returns true if and only if:
p
- The Permission to check against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |