org.openflow.gui.net.protocol.auth
Class AuthReply
java.lang.Object
org.openflow.gui.net.protocol.OFGMessage
org.openflow.gui.net.protocol.auth.AuthReply
- All Implemented Interfaces:
- Message<OFGMessageType>
public class AuthReply
- extends OFGMessage
Reply to an authentication request with a user's credentials. The password
is converted to a salted SHA-1 hash. Specifically, the SHA-1 of the password
is computed. These salt is appended to that digest. Finally, the SHA-1 of
this is computed. This final SHA-1 will be sent to the server along with
the username.
- Author:
- David Underhill
|
Constructor Summary |
AuthReply(int xid,
java.lang.String username,
java.lang.String pw,
byte[] salt)
Constructs a new authentication reply. |
|
Method Summary |
int |
length()
total length of this message in bytes |
java.lang.String |
toString()
String representation of the message including the date and type. |
void |
write(java.io.DataOutput out)
sends the message over the specified output stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
username
public final java.lang.String username
saltedSHA1ofPassword
public final byte[] saltedSHA1ofPassword
AuthReply
public AuthReply(int xid,
java.lang.String username,
java.lang.String pw,
byte[] salt)
- Constructs a new authentication reply.
length
public int length()
- Description copied from class:
OFGMessage
- total length of this message in bytes
- Overrides:
length in class OFGMessage
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Description copied from class:
OFGMessage
- sends the message over the specified output stream
- Overrides:
write in class OFGMessage
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Description copied from class:
OFGMessage
- String representation of the message including the date and type. Also
includes the transaction ID if it is non-zero.
- Overrides:
toString in class OFGMessage