|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.application.PermissionInformation
public abstract class PermissionInformation
This class contains information to allow the monitor application to choose the permissions to grant to an application.
SecurityPolicyHandler
Constructor Summary | |
---|---|
protected |
PermissionInformation()
OCAP applications SHALL NOT use this constructor - it is provided for internal use by the OCAP implementation. |
Method Summary | |
---|---|
abstract AppID |
getAppID()
This method returns an AppID of an application to be granted a requested set of Permissions that is returned by the getRequestedPermissions() method. |
abstract java.security.cert.Certificate[][] |
getCertificates()
Returns the set of valid certificates that were used to sign the application identified by the AppID returned by the getAppID() method. |
abstract java.security.PermissionCollection |
getRequestedPermissions()
This method returns the requested set of Permissions for the application specified by the AppID that is returned by the getAppID() method. |
static java.security.PermissionCollection |
getUnsignedAppPermissions()
This method returns the set of Permissions that are requested by all unsigned applications. |
abstract boolean |
isManufacturerApp()
Returns true if and only if the application identified by the AppID returned by the getAppID() is a Host Device Manufacturer applications. |
abstract boolean |
isPrivilegedCertificate(java.security.cert.Certificate cert)
Verifies that an end-entity certificate used to validate and application or file is a member of the list of privileged certificates in the privileged certificate descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PermissionInformation()
Method Detail |
---|
public abstract AppID getAppID()
getRequestedPermissions()
method.
getRequestedPermissions()
method.
java.lang.SecurityException
- if the caller does not have
MonitorAppPermission("security").public abstract boolean isManufacturerApp()
public abstract java.security.cert.Certificate[][] getCertificates()
Note that for Host Device Manufacturer applications, this may be an empty array.
For unsigned applications, this shall be an empty array.
public abstract boolean isPrivilegedCertificate(java.security.cert.Certificate cert)
cert
- The X.509 certificate that is to be checked against the list
of privileged certificates in the privileged certificate
descriptor.
public static java.security.PermissionCollection getUnsignedAppPermissions()
public abstract java.security.PermissionCollection getRequestedPermissions()
getAppID()
method.
For Host Device Manufacturer applications, this is the set of permissions requested for the application by the Host Device Manufacturer. Note that this may include manufacturer-specific permissions (e.g. a manufacturer-specific permission to access a DVD player API).
For other applications, the requested set of Permissions consists of Permissions that are requested in a permission request file and Permissions requested for unsigned applications.
Note that the requested set of Permissions always includes the permissions requested for unsigned applications, as returned by getUnsignedAppPermissions().
getAppID()
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |