net.jini.core.constraint
Class Delegation

java.lang.Object
  extended by net.jini.core.constraint.Delegation
All Implemented Interfaces:
Serializable, InvocationConstraint

public final class Delegation
extends Object
implements InvocationConstraint, Serializable

Represents a constraint on delegation from the client to the server. If the client delegates to the server, the server receives credentials which allow the server to authenticate using the client's identity in subsequent remote calls that the server makes or receives. (The credentials should at least be sufficient for the authentication mechanism used between the original client and server; they might not be sufficient if a different mechanism is used when exercising the delegation.)

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:
2.0
Author:
Sun Microsystems, Inc.
See Also:
ClientAuthentication, DelegationAbsoluteTime, DelegationRelativeTime, ClientSubject, ServerContext, Serialized Form

Field Summary
static Delegation NO
          Do not delegate from the client to the server, such that the server does not receive credentials which would allow it to authenticate using the client's identity.
private static long serialVersionUID
           
private  boolean val
          true for YES, false for NO
static Delegation YES
          If the client authenticates to the server, then delegate from the client to the server, such that the server receives credentials which allow it to authenticate using the client's identity in subsequent remote calls that the server makes or receives.
 
Constructor Summary
private Delegation(boolean val)
          Simple constructor.
 
Method Summary
private  Object readResolve()
          Canonicalize so that == can be used.
 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

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 receives credentials which allow it to authenticate using the client's identity in subsequent remote calls that the server makes or receives. The mechanisms and credentials used to support delegation are not specified by this constraint. Note that, because this constraint is conditional on client authentication, it does not conflict with ClientAuthentication.NO.


NO

public static final Delegation NO
Do not delegate from the client to the server, such that the server does not receive credentials which would allow it to authenticate using the client's identity.


val

private final boolean val
true for YES, false for NO

Constructor Detail

Delegation

private Delegation(boolean val)
Simple constructor.

Parameters:
val - true for YES, false for NO
Method Detail

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object

readResolve

private Object readResolve()
Canonicalize so that == can be used.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.