be.SIRAPRISE.messages
Class ClientAuthenticationMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.ClientAuthenticationMessageType
              extended by be.SIRAPRISE.messages.ClientAuthenticationMessageTypeV1_0

public final class ClientAuthenticationMessageTypeV1_0
extends ClientAuthenticationMessageType

ClientAuthenticationMessageTypeV1_0 is version 1_0 of the ClientAuthenticationMessageType. The layout of this message is as follows.

Zone Format Length Description
CLIENTID STRING   The name of the client. This must be a name that appears in some tuple of the CLIENT relvar.
SIGNATURELENGTH INTEGER 2 The number of bytes in SIGNATURE.
SIGNATURE BYTES   The actual signature computed by the retained signing algorithm using the client's private key on a message that consists solely of (all the bytes of, i.e. including the TLENGTH and BLENGTH fields) the CLIENTID field.

Since:
SIRA_PRISE 1.1
Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.ClientAuthenticationMessageType
MESSAGETYPEID
 
Method Summary
 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
 

Method Detail

message

public ClientAuthenticationMessage message(java.lang.String clientID,
                                           byte[] signature)
Description copied from class: ClientAuthenticationMessageType
Factory method for producing a ClientAuthentication message of this version of the message type

Specified by:
message in class ClientAuthenticationMessageType
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