org.dvb.user
Class UserPreferencePermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.dvb.user.UserPreferencePermission
- All Implemented Interfaces:
- java.io.Serializable, java.security.Guard
public class UserPreferencePermission
- extends java.security.BasicPermission
This class is for user preference and setting permissions. A
UserPreferencePermission contains a name,
but no actions list.
The permission name can either be "read" or "write". The
"read" permission allows an application to read the user
preferences and settings (using UserPreferenceManager.read
) for
which read access is not always granted. Access to
the following settings/preferences is always granted:
"User Language", "Parental Rating", "Default Font Size" and "Country Code"
The "write" permission allows
an application to modify user preferences and settings
(using UserPreferenceManager.write
).
- See Also:
- Serialized Form
Constructor Summary |
UserPreferencePermission(java.lang.String name)
Creates a new UserPreferencePermission with the
specified name. |
UserPreferencePermission(java.lang.String name,
java.lang.String actions)
Creates a new UserPreferencePermission object with the specified
name. |
Methods inherited from class java.security.BasicPermission |
equals, getActions, hashCode, implies, 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 |
UserPreferencePermission
public UserPreferencePermission(java.lang.String name)
- Creates a new UserPreferencePermission with the
specified name. The name is the symbolic name of the
UserPreferencePermission.
- Parameters:
name
- the name of the UserPreferencePermission
UserPreferencePermission
public UserPreferencePermission(java.lang.String name,
java.lang.String actions)
- Creates a new UserPreferencePermission object with the specified
name. The name is the symbolic name of the UserPreferencePermission,
and the actions String is unused and should be null.
This constructor exists for use by the Policy object to
instantiate new Permission objects.
- Parameters:
name
- the name of the UserPreferencePermissionactions
- should be null.