anon.client.replay
Class ReplayTimestamp

java.lang.Object
  extended by anon.client.replay.ReplayTimestamp

public class ReplayTimestamp
extends java.lang.Object

Author:
Stefan Lieske

Field Summary
private  java.lang.String m_mixId
           
private  long m_replayReferenceTime
          Stores the time in ms (see System.currentTimeMillis()) the mix has chosen as reference time for replay detection.
private static long SECONDS_PER_INTERVAL
           
 
Constructor Summary
ReplayTimestamp(java.lang.String a_mixId, int a_interval, int a_offset)
           
 
Method Summary
 byte[] getCurrentTimestamp()
           
 java.lang.String getMixId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECONDS_PER_INTERVAL

private static final long SECONDS_PER_INTERVAL
See Also:
Constant Field Values

m_mixId

private java.lang.String m_mixId

m_replayReferenceTime

private long m_replayReferenceTime
Stores the time in ms (see System.currentTimeMillis()) the mix has chosen as reference time for replay detection. This value is synchronized with the local clock.

Constructor Detail

ReplayTimestamp

public ReplayTimestamp(java.lang.String a_mixId,
                       int a_interval,
                       int a_offset)
Method Detail

getMixId

public java.lang.String getMixId()

getCurrentTimestamp

public byte[] getCurrentTimestamp()
Returns:
The current interval.