be.SIRAPRISE.messages
Class ServerHelloMessageType

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerHelloMessageType
Direct Known Subclasses:
ServerHelloMessageTypeV1_0

public abstract class ServerHelloMessageType
extends ServerMessageType

ServerHelloMessageType is the class representing all known versions of the server hello message type.

Author:
Erwin Smout

Field Summary
static int MESSAGETYPEID
          The numeric ID for messages of this type
 
Method Summary
abstract  ServerHelloMessage message(java.security.Signature signingProtocol, be.SIRAPRISE.security.ProprietaryOrJCECipher encryptionDecryptionProtocol, long idleTime, Version clientSiraPriseVersion, java.util.Set<java.lang.String> alternativeSigningProtocols)
          Factory method to produce a ServerHello message of this version of the message type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETYPEID

public static final int MESSAGETYPEID
The numeric ID for messages of this type

See Also:
Constant Field Values
Method Detail

message

public abstract ServerHelloMessage message(java.security.Signature signingProtocol,
                                           be.SIRAPRISE.security.ProprietaryOrJCECipher encryptionDecryptionProtocol,
                                           long idleTime,
                                           Version clientSiraPriseVersion,
                                           java.util.Set<java.lang.String> alternativeSigningProtocols)
Factory method to produce a ServerHello message of this version of the message type

Parameters:
signingProtocol - The message signing protocol elected by the server from the set of signing protocols proposed by the client
encryptionDecryptionProtocol - The encryption protocol elected by the server from the set of encryption protocols proposed by the client
idleTime - The time in milliseconds that the server will allow this connection to remain idle
clientSiraPriseVersion - The SIRA_PRISE version that the client must use for communication.
alternativeSigningProtocols - The set of alternative signing protocols that the server can handle (in addition to the elected signingProtocol) for user authentication
Returns:
A ServerHello message with the given data, of the appropriate version