java.rmi.ref
Class SecureHandlerData

java.lang.Object
  |
  +--java.rmi.ref.SecureHandlerData
All Implemented Interfaces:
java.io.Serializable

public class SecureHandlerData
extends java.lang.Object
implements java.io.Serializable

Used to hold the serializable state of an InvocationHandler for a server exported as either a SecureUnicastRemoteObject or a SecureActivatable. The implementation of this class must have a readResolve method that returns an equivalent instance of the correct type of InvocationHandler class: a unicast InvocationHandler must be returned if the ref field holds a SecureUnicastData instance, and an activatable InvocationHandler must be returned if the ref field holds a SecureActivatableData instance. The readResolve method must throw a SecurityException if any client endpoint is not an instance of a trusted class.

Since:
1.4
See Also:
Serialized Form

Field Summary
 SecurityConstraints clientConstraints
          The client constraints as would be returned by the RemoteSecurity.getClientConstraints method on the proxy, or the value null.
 java.lang.Object ref
          Holds the remainder of the handler data.
 
Constructor Summary
SecureHandlerData()
          Creates an instance with all fields set to null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientConstraints

public SecurityConstraints clientConstraints
The client constraints as would be returned by the RemoteSecurity.getClientConstraints method on the proxy, or the value null.

ref

public java.lang.Object ref
Holds the remainder of the handler data. At the sender, for a server exported as a SecureUnicastRemoteObject, this field must contain either an instance of SecureUnicastData or an object whose class has a writeReplace method that returns an instance of SecureUnicastData. At the sender, for a server exported as a SecureActivatable, this field must contain either an instance of SecureActivatableData or an object whose class has a writeReplace method that returns an instance of SecureActivatableData.
Constructor Detail

SecureHandlerData

public SecureHandlerData()
Creates an instance with all fields set to null


Copyright © 2000 Sun Microsystems, Inc. All rights reserved