net.jini.core.constraint
Class Confidentiality

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

public final class Confidentiality
extends Object
implements InvocationConstraint, Serializable

Represents a constraint on the confidentiality of message contents.

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

Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
Serialized Form

Field Summary
static Confidentiality NO
          Transmit message contents in the clear (no use of encryption).
private static long serialVersionUID
           
private  boolean val
          true for YES, false for NO
static Confidentiality YES
          Transmit message contents so that they cannot easily be interpreted by third parties (typically by using encryption).
 
Constructor Summary
private Confidentiality(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 Confidentiality YES
Transmit message contents so that they cannot easily be interpreted by third parties (typically by using encryption). The mechanisms used to maintain confidentiality are not specified by this constraint.


NO

public static final Confidentiality NO
Transmit message contents in the clear (no use of encryption).

Normally this constraint should not be used unless there is an organizational policy that data must be transmitted in the clear.


val

private final boolean val
true for YES, false for NO

Constructor Detail

Confidentiality

private Confidentiality(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.