|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sshtools.j2ssh.transport.SshMessage | +--com.sshtools.j2ssh.authentication.SshMsgUserAuthRequest
Implements the SSH_MSG_USERAUTH_REQUEST message
Field Summary | |
static int |
SSH_MSG_USERAUTH_REQUEST
The message id |
Constructor Summary | |
SshMsgUserAuthRequest()
Constructs the message |
|
SshMsgUserAuthRequest(java.lang.String username,
java.lang.String serviceName,
java.lang.String methodName)
Constructs the message with the details supplied. |
Method Summary | |
protected void |
constructByteArray(ByteArrayWriter baw)
Constucts a byte array containing the message. |
protected void |
constructMessage(ByteArrayReader bar)
Constructs the message from a byte array. |
java.lang.String |
getMessageName()
Gets the message name for debugging. |
java.lang.String |
getMethodName()
Gets the method name. |
java.lang.String |
getServiceName()
Gets the service name. |
java.lang.String |
getUsername()
Gets the username. |
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage |
fromByteArray, getMessageId, toByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SSH_MSG_USERAUTH_REQUEST
Constructor Detail |
public SshMsgUserAuthRequest()
public SshMsgUserAuthRequest(java.lang.String username, java.lang.String serviceName, java.lang.String methodName)
Constructs the message with the details supplied.
username
- The usernameserviceName
- The service to start after authenticationmethodName
- The authentication method nameMethod Detail |
public java.lang.String getMessageName()
Gets the message name for debugging.
getMessageName
in class SshMessage
public java.lang.String getUsername()
Gets the username.
public java.lang.String getServiceName()
Gets the service name.
public java.lang.String getMethodName()
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
Constructs the message from a byte array.
constructMessage
in class SshMessage
bar
- The byte array being read.
InvalidMessageException
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
Constucts a byte array containing the message.
constructByteArray
in class SshMessage
baw
- The byte array being written
InvalidMessageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |