java.rmi
Class RMIPermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.BasicPermission
              |
              +--java.rmi.RMIPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class RMIPermission
extends java.security.BasicPermission

Defines RMI runtime permissions. 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 possible target names are:
Permission Target Name What the Permission Allows Risks of Allowing this Permission
getClientSubject invoking SecureRemoteServer.getClientSubject The caller can learn the identity of the client by looking at the principals and public credentials of the returned Subject.

Since:
1.4
See Also:
Serialized Form

Constructor Summary
RMIPermission(java.lang.String name)
          Creates an instance with the specified name.
RMIPermission(java.lang.String name, java.lang.String actions)
          Creates an instance 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
 

Constructor Detail

RMIPermission

public RMIPermission(java.lang.String name)
Creates an instance with the specified name.
Parameters:
name - the target name

RMIPermission

public RMIPermission(java.lang.String name,
                     java.lang.String actions)
Creates an instance with the specified name. The actions parameter is ignored.
Parameters:
name - the target name
actions - ignored


Copyright © 2000 Sun Microsystems, Inc. All rights reserved