|
||||||||||
| 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.ocap.service.ServiceTypePermission
public final class ServiceTypePermission
ServiceTypePermission represents application permission to
select a specific service type using a ServiceContext accessible by the
application.
When this permission is evaluated, the SecurityManager.checkPermission
method must not fail when checking for
SelectPermission on the accessed
ServiceContext. Otherwise, the security manager check for this permission
will also fail.
Note that undefined service type strings may be provided to the constructor
of this class, but subsequent calls to SecurityManager.checkPermission()
with the resulting ServiceTypePermission object will fail.
| Field Summary | |
|---|---|
static String |
BROADCAST
Indicates an inband broadcast service provided by a content provider. |
static String |
MFR
Indicates an abstract service provided by the Host device manufacturer. |
static String |
MSO
Indicates an abstract service provided by the HFC network provider (i.e., MSO). |
| Constructor Summary | |
|---|---|
ServiceTypePermission(String type,
String actions)
Creates a new ServiceTypePermission object with the specified service type name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Tests two ServiceTypePermission objects for equality. |
String |
getActions()
Returns the canonical representation of the actions string. |
int |
hashCode()
Provides the hash code value of this object. |
boolean |
implies(Permission p)
Checks if the specified permission is "implied" by this object. |
| Methods inherited from class java.security.BasicPermission |
|---|
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 |
| Field Detail |
|---|
public static final String MFR
public static final String MSO
public static final String BROADCAST
| Constructor Detail |
|---|
public ServiceTypePermission(String type,
String actions)
type - The name of the service type that can be selected. Supported service
types include "abstract.manufacturer", "abstract.mso", and "broadcast". An
asterisk may be used to signify a wildcard match.actions - The actions String is either "own" or "*". The string "own" means
the permission applies to your own service context, acquired via the
ServiceContextFactory.createServiceContext or
ServiceContextFactory.getServiceContext methods. The string "*"
implies permission to these, plus permission for service contexts obtained from
all other sources.| Method Detail |
|---|
public boolean implies(Permission p)
Specifically, implies(Permission p) returns true if:
In addition, implies(Permission p) returns true if:
implies in class BasicPermissionp - The permission against which to test.
true if the specified permission is equal
to or implied by this permission; false otherwise.public boolean equals(Object obj)
ServiceTypePermission objects for equality.
Returns true if and only if obj's class is the
same as the class of this object, and obj has the same name
and actions string as this object.
equals in class BasicPermissionobj - The object to test for equality.
true if the two permissions are equal;
false otherwise.Object.hashCode(),
Hashtablepublic int hashCode()
ServiceTypePermission objects that are equal will
return the same hash code.
hashCode in class BasicPermissionObject.equals(java.lang.Object),
Hashtablepublic String getActions()
getActions in class BasicPermission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||