javax.management.remote.message
Class TLSMessage

java.lang.Object
  extended byjavax.management.remote.message.TLSMessage
All Implemented Interfaces:
Message, ProfileMessage, Serializable

public class TLSMessage
extends Object
implements ProfileMessage

Handshake message between client and server to set up the TLS handshake.

This class represents the handshake messages exchanged between the client and the server to agree on the initiation of the TLS handshake.

When the client sends the TLSMessage(READY), it must not send any further traffic on the underlying transport service until a corresponding reply message, either TLSMessage(PROCEED) or an indication message, is received. When the client receives a TLSMessage(PROCEED) in reply to its TLSMessage(READY) it immediately begins the underlying negotiation process for TLS transport security.

When the server receives the TLSMessage(READY), it must not send any further traffic on the underlying transport service until it generates a corresponding reply. If the server decides to allow TLS transport security negotiation it sends a TLSMessage(PROCEED) and awaits the underlying negotiation process for TLS transport security. Otherwise, the server sends an indication as to why the operation failed.

The status attribute takes one of the two values:

The profile name in this profile message is "TLS".

See Also:
HandshakeBeginMessage, Serialized Form

Field Summary
static int PROCEED
          This status code is used by a server to indicate that it allows the client to proceed with the TLS handshake.
static int READY
          This status code is used by a client to indicate that it is ready to start the TLS handshake.
 
Constructor Summary
TLSMessage(int status)
          Constructs a new TLSMessage with the specified status.
 
Method Summary
 String getProfileName()
          The profile name.
 int getStatus()
          The status of the current TLS transport security negotiation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READY

public static final int READY
This status code is used by a client to indicate that it is ready to start the TLS handshake.

See Also:
Constant Field Values

PROCEED

public static final int PROCEED
This status code is used by a server to indicate that it allows the client to proceed with the TLS handshake.

See Also:
Constant Field Values
Constructor Detail

TLSMessage

public TLSMessage(int status)
Constructs a new TLSMessage with the specified status.

Parameters:
status - the status of the current TLS transport security negotiation.
Method Detail

getStatus

public int getStatus()
The status of the current TLS transport security negotiation.

Returns:
the status of the current TLS transport security negotiation.

getProfileName

public String getProfileName()
The profile name.

Specified by:
getProfileName in interface ProfileMessage
Returns:
the profile name.

JMX Remote API Specification 1.0 Final Release
Generated from RI build jmxremote-1_0_1_03-b57.2 2005.11.28_17:40:34_MET

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.