net.sf.tumbler
Class TumblerKnockV2

java.lang.Object
  extended bynet.sf.tumbler.TumblerKnock
      extended bynet.sf.tumbler.TumblerKnockV2

public class TumblerKnockV2
extends TumblerKnock

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()).

Author:
Marty Lamb

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

setUser

public void setUser(java.lang.String user)
Sets the username portion of the knock.

Parameters:
user - the username to embed within the knock

toUnhashedString

public java.lang.String toUnhashedString()
Description copied from class: TumblerKnock
Returns the unhashed knock data, without the protocol declaration. This exists mainly for debugging and tinkering purposes.

Overrides:
toUnhashedString in class TumblerKnock
Returns:
the unhashed knock request, without the protocol declaration
See Also:
TumblerKnock.toUnhashedString()

main

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.

Throws:
java.lang.Exception - if anything at all goes wrong.