public final class StatisticsMessageTypeV1_0 extends StatisticsMessageType
This message type has the following fields :
Zone | Format | Length | Description |
---|---|---|---|
USERID | STRING | The name of the user issuing the monitor command. Can be the zero-length string, but if not, it must be a name that appears in some tuple of the USER relvar. | |
AUTHBYCLIENT | INTEGER | 1 | 1 if the client has authenticated the user, 0 otherwise. |
AUTHALGORITHM | STRING | The name of the signing algorithm used to compute SIGNATURE. Can be the zero-length string. | |
SIGNATURELENGTH | INTEGER | 2 | The number of bytes in SIGNATURE. Can be zero, in which case the SIGNATURE field is omitted from the message. |
SIGNATURE | BYTES | The signature as computed by the signature algorithm identified by AUTHALGORITHM, using the user's private key corresponding to the public key that is registered for the user in the USERCERTIFICATE relvar, and applied to the CHALLENGE field obtained from the preceding ServerHello response message. | |
RELVARNAMELENGTH | INTEGER | 2 | The number of bytes in RELVARNAME. |
RELVARNAME | BYTES | The name of the relvar on which statistics are to be gathered, as encoded by the NAME type implementation. |
MESSAGETYPEID
Modifier and Type | Method and Description |
---|---|
static StatisticsMessageTypeV1_0 |
getInstance()
Gets the instance of the message type
|
StatisticsMessage |
message(MessageParams commandParams,
byte[] signature,
java.lang.String userAuthenticationAlgorithm,
boolean authenticatedByClient,
java.lang.String userID)
Produces a CompiledMonitorCommandMessage of the appropriate type reflecting the given attribute values
|
public static StatisticsMessageTypeV1_0 getInstance()
public StatisticsMessage message(MessageParams commandParams, byte[] signature, java.lang.String userAuthenticationAlgorithm, boolean authenticatedByClient, java.lang.String userID)
ExecuteCompiledMonitorCommandMessageType
message
in class ExecuteCompiledMonitorCommandMessageType
commandParams
- The command object's relevant params to be communicated in a message to the serversignature
- The signature authenticating the user IDuserAuthenticationAlgorithm
- Name of the Signature algorithm to be used when signing the user ID/verifying the userID signatureauthenticatedByClient
- true if the user has been authenticated by the clientuserID
- The ID of the user issuing the monitor command