java.rmi.constraint
Class Delegation

java.lang.Object
  |
  +--java.rmi.constraint.Delegation
All Implemented Interfaces:
SecurityConstraint, java.io.Serializable

public final class Delegation
extends java.lang.Object
implements SecurityConstraint, java.io.Serializable

Represents a constraint on delegation from the client to the server.

The use of an instance of this constraint does not directly imply a ClientAuthentication.YES constraint; that must be specified separately to ensure that the client actually authenticates itself.

Serialization for this class is guaranteed to produce instances that are comparable with ==.

Since:
1.4
See Also:
Serialized Form

Field Summary
static Delegation NO
          Ensure that the client does not delegate to the server.
static Delegation YES
          If the client authenticates to the server, then delegate from the client to the server, such that the server can authenticate using the client's identity.
 
Method Summary
 SecurityConstraint reduceBy(SecurityConstraint c)
          Returns the smallest representable subset of this constraint that contains the intersection of this constraint with the specified constraint, or null if there is no intersection.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

YES

public static final Delegation YES
If the client authenticates to the server, then delegate from the client to the server, such that the server can authenticate using the client's identity.

NO

public static final Delegation NO
Ensure that the client does not delegate to the server.
Method Detail

reduceBy

public SecurityConstraint reduceBy(SecurityConstraint c)
Returns the smallest representable subset of this constraint that contains the intersection of this constraint with the specified constraint, or null if there is no intersection.

For any instances c1 and c2 of this class, c1.reduceBy(c2) returns c1 if the instances are equal, and returns null otherwise.

For any instance c of this class, c.reduceBy(ClientAuthentication.NO) returns ClientAuthentication.NO.

For any instance c1 of this class and any other constraint instance c2 not previously mentioned, c1.reduceBy(c2) returns c1.

Specified by:
reduceBy in interface SecurityConstraint
Following copied from interface: java.rmi.constraint.SecurityConstraint
Parameters:
c - a constraint
Returns:
the smallest representable subset of this constraint that intersects with the specified constraint, or null if there is no intersection

toString

public java.lang.String toString()
Returns a string representation of this object.
Overrides:
toString in class java.lang.Object


Copyright © 2000 Sun Microsystems, Inc. All rights reserved