|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.message.Message
com.sun.slamd.message.ClientHelloMessage
This class defines a client hello message that the client uses to identify itself to the server and optionally perform authentication so that the server can verify the identity of the client.
| Field Summary |
| Constructor Summary | |
ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
boolean supportsTimeSync)
Creates a new client hello message that will only provide client version and identification information but does not perform any authentication. |
|
ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int authType,
java.lang.String authID,
java.lang.String authCredentials,
boolean supportsTimeSync)
Creates a new client hello message with the specified information. |
|
ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int authType,
java.lang.String authID,
java.lang.String authCredentials,
boolean requestServerAuth,
boolean restrictedMode,
boolean supportsTimeSync)
Creates a new client hello message with the specified information. |
|
| Method Summary | |
static ClientHelloMessage |
decodeClientHello(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a client hello message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getAuthCredentials()
Retrieves the credentials that the client is using to authenticate itself. |
java.lang.String |
getAuthID()
Retrives the ID that the client is using to authenticate itself. |
int |
getAuthType()
Retrieves the type of authentication that the client is using. |
java.lang.String |
getClientID()
Retrieves the human-readable ID for the client. |
java.lang.String |
getClientVersion()
Retrieves the version of the client software being used. |
boolean |
requestServerAuth()
Indicates whether the client is requesting server authentication. |
boolean |
restrictedMode()
Indicates whether the client is operating in restricted mode, in which case the server should only give it jobs for which the client was explicitly requested. |
boolean |
supportsTimeSync()
Indicates whether this client supports time synchronization with the server. |
java.lang.String |
toString()
Retrieves a string representation of this message. |
| Methods inherited from class com.sun.slamd.message.Message |
decode, getMessageID, getMessageType, send |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
boolean supportsTimeSync)
messageID - The message ID for this message.clientVersion - The version of the client software being used.clientID - The human-readable text that can be used to
identify this client.supportsTimeSync - Indicates whether the client supports time
synchronization with the server.
public ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int authType,
java.lang.String authID,
java.lang.String authCredentials,
boolean supportsTimeSync)
messageID - The message ID for this message.clientVersion - The version of the client software being used.clientID - The human-readable text that can be used to
identify this client.authType - The type of authentication that the client is
using.authID - The ID that the client is using to authenticate.authCredentials - The credentials that the client is using to
authenticate.supportsTimeSync - Indicates whether the client supports time
synchronization with the server.
public ClientHelloMessage(int messageID,
java.lang.String clientVersion,
java.lang.String clientID,
int authType,
java.lang.String authID,
java.lang.String authCredentials,
boolean requestServerAuth,
boolean restrictedMode,
boolean supportsTimeSync)
messageID - The message ID for this message.clientVersion - The version of the client software being used.clientID - The human-readable text that can be used to
identify this client.authType - The type of authentication that the client is
using.authID - The ID that the client is using to authenticate.authCredentials - The credentials that the client is using to
authenticate.requestServerAuth - Indicates whether the client requests that the
server authenticate itself.restrictedMode - Indicates whether the client will operate in
restricted mode, in which case it should only
be used to run jobs for which it is explicitly
requested.supportsTimeSync - Indicates whether the client supports time
synchronization with the server.| Method Detail |
public java.lang.String getClientVersion()
public java.lang.String getClientID()
public int getAuthType()
public java.lang.String getAuthID()
public java.lang.String getAuthCredentials()
public boolean requestServerAuth()
true if the client is requesting server
authentication, or false if not.public boolean restrictedMode()
true if the client is operating in restricted mode,
or false if not.public boolean supportsTimeSync()
true if the client supports time synchronization, or
false if not.public java.lang.String toString()
toString in class Message
public static ClientHelloMessage decodeClientHello(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the ClientHello sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a client hello message.public ASN1Element encode()
ClientHello ::= [APPLICATION 0] SEQUENCE {
clientVersion OCTET STRING,
clientID OCTET STRING,
authentication Authentication OPTIONAL,
requestServerAuth BOOLEAN OPTIONAL DEFAULT FALSE,
restrictedMode BOOLEAN OPTIONAL DEFAULT FALSE }
supportsTimeSync BOOLEAN OPTIONAL DEFAULT FALSE }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||