be.SIRAPRISE.messages
Class ClientHelloMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.ClientHelloMessageType
              extended by be.SIRAPRISE.messages.ClientHelloMessageTypeV1_0

public final class ClientHelloMessageTypeV1_0
extends ClientHelloMessageType

ClientHelloMessageTypeV1_0 is the 1.0 version of the client hello message type. This message is structured as follows :

Zone Format Length Description
SPCOUNT INTEGER 2 Number of signing protocol specifications that follow. Can be zero.
SP STRING   The identification of a signing protocol that the client is willing and able to use. This field appears as many times as indicated in SPCOUNT.
EPCOUNT INTEGER 2 Number of encryption protocol specificiations that follow. Can be zero.
EP STRING   The identification of an encryption protocol that the client is willing and able to use. This field appears as many times as indicated in EPCOUNT.
IDLETIME INTEGER 8 The time in milliseconds that the server is requested to allow this connection to remain "idle". A connection is "idle" either if it has been opened, but no transaction has currently been started on it, or a transaction has been started, and that transaction is awaiting client input. "idle time forever" is not supported, but it can be approximated by requesting the value 0x7FFFFFFFFFFFFFFF.
MAJORCLVERSION INTEGER 2 The major version number of the SIRA_PRISE specification that the client was designed to handle (currently only the value 1 is valid).
MINORCLVERSION INTEGER 2 The minor version number of the SIRA_PRISE specification that the client was designed to handle.

If the SPCOUNT field is set to zero, this means that the client will not be signing his commands. Likewise, if the EPCOUNT field is set to zero, this means that the client will not be encrypting his commands.

Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.ClientHelloMessageType
MESSAGETYPEID
 
Method Summary
 ClientHelloMessage message(java.util.Set<java.lang.String> signatureAlgorithmNames, java.util.Set<java.lang.String> encryptionProtocolNames, long requestConnectionIdleTime, Version version)
          Factory method for creating instances of ClientHello messages of some particular version of the CLientHello messagetype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

message

public ClientHelloMessage message(java.util.Set<java.lang.String> signatureAlgorithmNames,
                                  java.util.Set<java.lang.String> encryptionProtocolNames,
                                  long requestConnectionIdleTime,
                                  Version version)
Description copied from class: ClientHelloMessageType
Factory method for creating instances of ClientHello messages of some particular version of the CLientHello messagetype

Specified by:
message in class ClientHelloMessageType
Parameters:
signatureAlgorithmNames - The set of names of signatrue algorithms that the client is willing and able to use in the conversation with the server
encryptionProtocolNames - The set of names of encryption algorithms that the client is willing and able to use in the conversation with the server
requestConnectionIdleTime - The time in millieseconds that the client requests the server to allow this connection to remain idle, that is, in a state where no transaction has been started on the connection
version - The version of the SIRA_PRISE specification that this client will use in the conversation with the server
Returns:
A ClientHelloMessage