|
||||||||||
| 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.ServerHelloMessage
This class defines a server hello message that the server uses to identify itself, and optionally authenticate itself, to the client.
| Field Summary |
| Constructor Summary | |
ServerHelloMessage(int messageID,
java.lang.String serverVersion,
java.lang.String serverID)
Creates a new server hello message that will only provide version and identification information but does not perform any authentication. |
|
ServerHelloMessage(int messageID,
java.lang.String serverVersion,
java.lang.String serverID,
int authType,
java.lang.String authID,
java.lang.String authCredentials)
Creates a new server hello message with the specified information. |
|
| Method Summary | |
static ServerHelloMessage |
decodeServerHello(int messageID,
ASN1Element element)
Decodes the provided ASN.1 element as a server hello message. |
ASN1Element |
encode()
Encodes this message into an ASN.1 element. |
java.lang.String |
getAuthCredentials()
Retrieves the credentials that the server is using to authenticate itself. |
java.lang.String |
getAuthID()
Retrives the ID that the server is using to authenticate itself. |
int |
getAuthType()
Retrieves the type of authentication that the server is using. |
java.lang.String |
getServerID()
Retrieves the human-readable ID for the server. |
java.lang.String |
getServerVersion()
Retrieves the version of the server software being used. |
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 ServerHelloMessage(int messageID,
java.lang.String serverVersion,
java.lang.String serverID)
messageID - The message ID for this message.serverVersion - The version of the server software being used.serverID - The human-readable text that can be used to identify
the server.
public ServerHelloMessage(int messageID,
java.lang.String serverVersion,
java.lang.String serverID,
int authType,
java.lang.String authID,
java.lang.String authCredentials)
messageID - The message ID for this message.serverVersion - The version of the server software being used.serverID - The human-readable text that can be used to
identify this server.authType - The type of authentication that the server is
using.authID - The ID that the server is using to authenticate.authCredentials - The credentials that the server is using to
authenticate.| Method Detail |
public java.lang.String getServerVersion()
public java.lang.String getServerID()
public int getAuthType()
public java.lang.String getAuthID()
public java.lang.String getAuthCredentials()
public java.lang.String toString()
toString in class Message
public static ServerHelloMessage decodeServerHello(int messageID,
ASN1Element element)
throws SLAMDException
messageID - The message ID to use for this message.element - The ASN.1 element containing the ServerHello sequence.
SLAMDException - If the provided ASN.1 element cannot be decoded
as a server hello message.public ASN1Element encode()
ServerHello ::= [APPLICATION 2] SEQUENCE {
serverVersion OCTET STRING,
serverID OCTET STRING,
authentication Authentication OPTIONAL }
encode in class Message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||