|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tumbler.TumblerKnock
net.sf.tumbler.TumblerKnockV2
A subclass of TumblerKnock implementing the TUMBLER2 protocol.
See TumblerKnock for usage instructions.
This class is identical to TumblerKnock in all respects except the addition
of an optional user
parameter for the knock (accessed via setUser()
).
Method Summary | |
static void |
main(java.lang.String[] args)
Insanely simple and almost completely non-robust test/example program that sends a TUMBLER2 knock. |
void |
setUser(java.lang.String user)
Sets the username portion of the knock. |
java.lang.String |
toUnhashedString()
Returns the unhashed knock data, without the protocol declaration. |
Methods inherited from class net.sf.tumbler.TumblerKnock |
send, setSecret, setSourceAddress, setTimestamp, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void setUser(java.lang.String user)
user
- the username to embed within the knockpublic java.lang.String toUnhashedString()
TumblerKnock
toUnhashedString
in class TumblerKnock
TumblerKnock.toUnhashedString()
public static void main(java.lang.String[] args) throws java.lang.Exception
Insanely simple and almost completely non-robust test/example program that sends a TUMBLER2 knock.
Invoke with no arguments for usage information.
java.lang.Exception
- if anything at all goes wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |