javax.management.remote.message
Class TLSMessage

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

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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.