net.jini.jeri.ssl
Class ConfidentialityStrength

java.lang.Object
  extended by net.jini.jeri.ssl.ConfidentialityStrength
All Implemented Interfaces:
Serializable, InvocationConstraint

public final class ConfidentialityStrength
extends Object
implements InvocationConstraint, Serializable

Represents a constraint that, if confidentiality of message contents is ensured, the specified strength of confidentiality be used.

The use of an instance of this constraint does not directly imply a Confidentiality.YES constraint; that must be specified separately to ensure that confidentiality is actually ensured.

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

This constraint is supported by the endpoints defined in this package.

The SslTrustVerifier trust verifier may be used for establishing trust in remote proxies that use instances of this class.

Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
SslEndpoint, SslServerEndpoint, HttpsEndpoint, HttpsServerEndpoint, SslTrustVerifier, Serialized Form

Field Summary
private static long serialVersionUID
           
static ConfidentialityStrength STRONG
          If confidentiality of message contents is ensured, then use strong confidentiality for message contents.
private  boolean value
          true for STRONG, false for WEAK
static ConfidentialityStrength WEAK
          If confidentiality of message contents is ensured, then use weak confidentiality for message contents.
 
Constructor Summary
private ConfidentialityStrength(boolean value)
          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

STRONG

public static final ConfidentialityStrength STRONG
If confidentiality of message contents is ensured, then use strong confidentiality for message contents.

For the endpoints in this package, this constraint is supported by cipher suites with the following cipher algorithms:


WEAK

public static final ConfidentialityStrength WEAK
If confidentiality of message contents is ensured, then use weak confidentiality for message contents.

For the endpoints in this package, this constraint is supported by cipher suites with the following cipher algorithms:


value

private final boolean value
true for STRONG, false for WEAK

Constructor Detail

ConfidentialityStrength

private ConfidentialityStrength(boolean value)
Simple constructor.

Parameters:
value - true for STRONG, false for WEAK
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.