Represents permission to call a method. An instance of this class 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 target name can be any of the following forms:
* Identifier *Suffix Identifier QualifiedIdentifier. QualifiedIdentifier.Identifier QualifiedIdentifier.*Suffix QualifiedIdentifier.Identifier
where
QualifiedIdentifier and
Identifier are as defined in
The Java(TM) Language Specification except that whitespace is not permitted, and
Suffix is defined to be one or more characters that may be part of an
Identifier. These forms are defined to match fully qualified names of the form
QualifiedIdentifier.
Identifier as follows:
Target Name | QualifiedIdentifier Match | Identifier Match |
* | any | any |
method | any | method |
*suffix | any | any ending with suffix |
prefix* | any | any starting with prefix |
type.* | type | any |
type.method | type | method |
type.*suffix | type | any ending with suffix |
type.prefix* | type | any starting with prefix |
This class, and simple subclasses of it, can be used (for example) with {@link net.jini.jeri.BasicInvocationDispatcher}. It is recommended that a simple subclass of this class be defined for each remote object implementation class that can be exported using an {@link net.jini.export.Exporter}, to allow separation of grants in policy files.
@author Sun Microsystems, Inc.
@since 2.0