be.SIRAPRISE.messages
Class ClientAuthenticationMessageType

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.ClientAuthenticationMessageType
Direct Known Subclasses:
ClientAuthenticationMessageTypeV1_0

public abstract class ClientAuthenticationMessageType
extends ServerInputMessageType

The ClientAuthenticationMessageType is the message type that the server expects the client to send after the server has accepted a connection, and indicated that a signing protocol proposed by the client can be used

Author:
Erwin Smout

Field Summary
static int MESSAGETYPEID
           
 
Method Summary
abstract  ClientAuthenticationMessage message(java.lang.String clientID, byte[] signature)
          Factory method for producing a ClientAuthentication 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
See Also:
Constant Field Values
Method Detail

message

public abstract ClientAuthenticationMessage message(java.lang.String clientID,
                                                    byte[] signature)
Factory method for producing a ClientAuthentication message of this version of the message type

Parameters:
clientID - The token identifying the client to the server
signature - The bytes of the signature computed by applying the elected Signature to the clientID field
Returns:
A ClientAuthenticationMessage