Package com.sun.jini.mahalo
Class MahaloPermission
java.lang.Object
java.security.Permission
net.jini.security.AccessPermission
com.sun.jini.mahalo.MahaloPermission
- All Implemented Interfaces:
Serializable,Guard
Represents permissions that can be used to express the access control policy for the Mahalo
server exported with a
net.jini.jeri.BasicJeriExporter. This class can be passed to
net.jini.jeri.BasicInvocationDispatcher, and then used in security policy permission
grants.
An instance contains a name (also referred to as a "target name") but no actions list; you either
have the named permission or you don't. The convention is that the target name is the
non-qualified name of the remote method being invoked. Wildcard matches are supported using the
syntax specified by AccessPermission.
The possible target names for use with a Mahalo server are specified in the package documentation
for com.sun.jini.mahalo
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMahaloPermission(String name) Creates an instance with the specified target name. -
Method Summary
Methods inherited from class net.jini.security.AccessPermission
equals, getActions, hashCode, impliesMethods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
-
Constructor Details
-
MahaloPermission
Creates an instance with the specified target name.- Parameters:
name- the target name- Throws:
NullPointerException- if the target name isnullIllegalArgumentException- if the target name does not match the syntax specified in the comments at the beginning of theAccessPermissionclass
-