|
|||||||||
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 java.lang.String |
BROADCAST
Indicates an inband broadcast service provided by a content provider. |
static java.lang.String |
MFR
Indicates an abstract service provided by the Host device manufacturer. |
static java.lang.String |
MSO
Indicates an abstract service provided by the HFC network provider (i.e., MSO). |
Constructor Summary | |
---|---|
ServiceTypePermission(java.lang.String type,
java.lang.String actions)
Creates a new ServiceTypePermission object with the specified service type name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests two ServiceTypePermission objects for equality. |
java.lang.String |
getActions()
Returns the canonical representation of the actions string. |
int |
hashCode()
Provides the hash code value of this object. |
boolean |
implies(java.security.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 java.lang.String MFR
public static final java.lang.String MSO
public static final java.lang.String BROADCAST
Constructor Detail |
---|
public ServiceTypePermission(java.lang.String type, java.lang.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(java.security.Permission p)
Specifically, implies(Permission p) returns true if:
In addition, implies(Permission p) returns true if:
implies
in class java.security.BasicPermission
p
- The permission against which to test.
true
if the specified permission is equal
to or implied by this permission; false
otherwise.public boolean equals(java.lang.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 java.security.BasicPermission
obj
- The object to test for equality.
true
if the two permissions are equal;
false
otherwise.public int hashCode()
ServiceTypePermission
objects that are equal will
return the same hash code.
hashCode
in class java.security.BasicPermission
public java.lang.String getActions()
getActions
in class java.security.BasicPermission
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |