Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.reggie
Class RegistrarPermission

    java.lang.Object
      java.security.Permission
          net.jini.security.AccessPermission
              com.sun.jini.reggie.RegistrarPermission

All Implemented Interfaces:
  Guard, Serializable

public class RegistrarPermission
extends AccessPermission

Permission that can be used to express the access control policy for an instance of the Reggie lookup service exported with a `BasicJeriExporter`. This class can be specified to `BasicInvocationDispatcher`, which will then perform permission checks for incoming remote calls using `RegistrarPermission` instances.

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 fully 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 Reggie server are specified in the package documentation for `com.sun.jini.reggie`.

Since:
  2.0
See Also:
  Serialized Form

Constructor Summary
`RegistrarPermission(String name)` Creates an instance with the specified target name.

Methods inherited from class net.jini.security.AccessPermission
`equals, getActions, hashCode, implies`

Methods inherited from class java.security.Permission
`checkGuard, getName, newPermissionCollection, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### RegistrarPermission

    public RegistrarPermission(String name)

  Creates an instance with the specified target name.

Parameters:
  `name` - the target name
Throws:
  `NullPointerException` - if the target name is `null`
  `IllegalArgumentException` - if the target name does not match the syntax specified in the comments at the beginning of the `AccessPermission` class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved