|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.protocol.SLAMDMessage
com.sun.slamd.protocol.ClientHello
public class ClientHello
This class defines a SLAMD message that will be sent from the client to the server when the connection is first established. It provides the server with all the necessary properties and capabilities for this client.
| Constructor Summary | |
|---|---|
ClientHello()
Creates a new instance of this client hello message which is intended for use in decoding a message transmitted between the client and the server. |
|
ClientHello(int messageID,
java.util.HashMap extraProperties,
java.lang.String clientIP,
int clientPort,
java.lang.String clientID,
java.lang.String clientManagerID,
int majorVersion,
int minorVersion,
int pointVersion,
boolean restrictedMode)
Creates a new instance of this client hello message with the provided information. |
|
ClientHello(int messageID,
java.util.HashMap extraProperties,
java.lang.String clientIP,
int clientPort,
java.lang.String clientID,
java.lang.String clientManagerID,
int majorVersion,
int minorVersion,
int pointVersion,
boolean restrictedMode,
java.lang.String authMethod,
java.lang.String authID,
byte[] authCredentials,
boolean requireServerAuth)
Creates a new instance of this client hello message with the provided information. |
|
| Method Summary | |
|---|---|
void |
decodeMessagePayload(ASN1Element payloadElement)
Decodes the provided ASN.1 element and uses it as the payload for this SLAMD message. |
ASN1Element |
encodeMessagePayload()
Encodes the payload component of this SLAMD message to an ASN.1 element for inclusion in the message envelope. |
byte[] |
getAuthCredentials()
Retrieves the credentials that the client wishes to use to authenticate to the server. |
java.lang.String |
getAuthID()
Retrieves the authentication ID that the client wishes to use to authenticate to the server. |
java.lang.String |
getAuthMethod()
Retrieves the name of the method that the client wishes to use to authenticate to the server. |
java.lang.String |
getClientID()
Retrieves the client ID for this client connection. |
java.lang.String |
getClientIP()
Retrieves the client IP address for this client connection. |
java.lang.String |
getClientManagerID()
Retrieves the client manager ID for the client manager with which this client connection is associated. |
int |
getClientPort()
Retrieves the client port number for this client connection. |
int |
getMajorVersion()
Retrieves the major version number for the client software. |
int |
getMinorVersion()
Retrieves the minor version number for the client software. |
int |
getPointVersion()
Retrieves the point version number for the client software. |
boolean |
getRequireServerAuth()
Indicates whether the client requires the server to authenticate itself to the client. |
boolean |
getRestrictedMode()
Indicates whether the client is running in restricted mode and should only be assigned jobs for which it is explicitly requested. |
void |
payloadToString(java.lang.StringBuffer buffer,
int indent)
Appends a string representation of the payload for this SLAMD message to the provided buffer. |
void |
setAuthCredentials(byte[] authCredentials)
Specifies the credentials that the client wishes to use to authenticate to the server. |
void |
setAuthID(java.lang.String authID)
Specifies the authentication ID that the client wishes to use to authenticate to the server. |
void |
setAuthMethod(java.lang.String authMethod)
Specifies the name of the method that the client wishes to use to authenticate to the server. |
void |
setClientID(java.lang.String clientID)
Specifies the client ID for this client connection. |
void |
setClientIP(java.lang.String clientIP)
Specifies the client IP address for this client connection. |
void |
setClientManagerID(java.lang.String clientManagerID)
Specifies the client manager ID for the client manager with which this client connection is associated. |
void |
setClientPort(int clientPort)
Specifies the client port number for this client connection. |
void |
setMajorVersion(int majorVersion)
Specifies the major version number for the client software. |
void |
setMinorVersion(int minorVersion)
Specifies the minor version number for the client software. |
void |
setPointVersion(int pointVersion)
Specifies the point version number for the client software. |
void |
setRequireServerAuth(boolean requireServerAuth)
Specifies whether the client requires the server to authenticate itself to the client. |
void |
setRestrictedMode(boolean restrictedMode)
Specifies whether the client is running in restricted mode and should only be assigned jobs for which it is explicitly requested. |
| Methods inherited from class com.sun.slamd.protocol.SLAMDMessage |
|---|
decode, decodeNameValuePair, decodeNameValuePairSequence, encode, encodeNameValuePair, getExtraProperties, getExtraProperty, getMessageID, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientHello()
public ClientHello(int messageID,
java.util.HashMap extraProperties,
java.lang.String clientIP,
int clientPort,
java.lang.String clientID,
java.lang.String clientManagerID,
int majorVersion,
int minorVersion,
int pointVersion,
boolean restrictedMode)
messageID - The message ID for this SLAMD message.extraProperties - The "extra" properties for this SLAMD message.
Both the names and values for the properties must
be strings.clientIP - The IP address of the client system.clientPort - The port number of the client system.clientID - The client ID for the client system.clientManagerID - The ID for the associated client manager.majorVersion - The major version number for this client.minorVersion - The minor version number for this client.pointVersion - The point version number for this client.restrictedMode - Indicates whether this client is operating in
restricted mode.
public ClientHello(int messageID,
java.util.HashMap extraProperties,
java.lang.String clientIP,
int clientPort,
java.lang.String clientID,
java.lang.String clientManagerID,
int majorVersion,
int minorVersion,
int pointVersion,
boolean restrictedMode,
java.lang.String authMethod,
java.lang.String authID,
byte[] authCredentials,
boolean requireServerAuth)
messageID - The message ID for this SLAMD message.extraProperties - The "extra" properties for this SLAMD message.
Both the names and values for the properties
must be strings.clientIP - The IP address of the client system.clientPort - The port number of the client system.clientID - The client ID for the client system.clientManagerID - The ID for the associated client manager.majorVersion - The major version number for this client.minorVersion - The minor version number for this client.pointVersion - The point version number for this client.restrictedMode - Indicates whether this client is operating in
restricted mode.authMethod - The authentication method used by this client.authID - The authentication ID for this client.authCredentials - The authentication credentials for this client.requireServerAuth - Indicates whether this client requires the
server to provide its own authentication info.| Method Detail |
|---|
public java.lang.String getClientIP()
public void setClientIP(java.lang.String clientIP)
clientIP - The client IP address for this client connection.public int getClientPort()
public void setClientPort(int clientPort)
clientPort - The client port number for this client connection.public java.lang.String getClientID()
public void setClientID(java.lang.String clientID)
clientID - The client ID for this client connection.public java.lang.String getClientManagerID()
null if it is not
associated with a client manager.public void setClientManagerID(java.lang.String clientManagerID)
clientManagerID - The client manager ID for the client manager with
which this client connection is associated.public int getMajorVersion()
public void setMajorVersion(int majorVersion)
majorVersion - The major version number for the client software.public int getMinorVersion()
public void setMinorVersion(int minorVersion)
minorVersion - The minor version number for the client software.public int getPointVersion()
public void setPointVersion(int pointVersion)
pointVersion - The point version number for the client software.public boolean getRestrictedMode()
true if this client is running in restricted mode, or
false if it is not.public void setRestrictedMode(boolean restrictedMode)
restrictedMode - Specifies whether the client is running in
restricted mode.public java.lang.String getAuthMethod()
null if no
authentication is to be performed.public void setAuthMethod(java.lang.String authMethod)
authMethod - The name of the method that the client wishes to use to
authenticate to the server.public java.lang.String getAuthID()
null if no
authentication is to be performed or no auth ID is required for
the selected authentication method.public void setAuthID(java.lang.String authID)
authID - The authentication ID that the client wishes to use to
authenticate to the server.public byte[] getAuthCredentials()
null if no authentication is to be
performed or no credentials are required for the selected
authentication method.public void setAuthCredentials(byte[] authCredentials)
authCredentials - The credentials that the client wishes to use to
authenticate to the server.public boolean getRequireServerAuth()
true if the client requires the server to
authenticate itself to the client, or false if not.public void setRequireServerAuth(boolean requireServerAuth)
requireServerAuth - Specifies whether the client requires the server
to authenticate itself to the client.public ASN1Element encodeMessagePayload()
encodeMessagePayload in class SLAMDMessage
public void decodeMessagePayload(ASN1Element payloadElement)
throws SLAMDException
decodeMessagePayload in class SLAMDMessagepayloadElement - The ASN.1 element to decode as the payload for this
SLAMD message.
SLAMDException - If a problem occurs while attempting to decode the
provided ASN.1 element as the payload for this
SLAMD message.
public void payloadToString(java.lang.StringBuffer buffer,
int indent)
payloadToString in class SLAMDMessagebuffer - The buffer to which the string representation is to be
appended.indent - The number of spaces to indent the payload content.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||