org.mpisws.p2p.transport.peerreview.commitment
Class Authenticator

java.lang.Object
  extended by org.mpisws.p2p.transport.peerreview.commitment.Authenticator
All Implemented Interfaces:
Comparable<Authenticator>

public class Authenticator
extends Object
implements Comparable<Authenticator>


Constructor Summary
Authenticator(InputBuffer buf, int hashSize, int signatureSize)
           
Authenticator(long seq, byte[] hash, byte[] signature)
           
 
Method Summary
 int compareTo(Authenticator that)
           
 boolean equals(Object o)
           
 byte[] getHash()
           
 ByteBuffer getPartToHashThenSign()
           
 long getSeq()
           
 byte[] getSignature()
           
 int hashCode()
           
 void serialize(OutputBuffer buf)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Authenticator

public Authenticator(long seq,
                     byte[] hash,
                     byte[] signature)

Authenticator

public Authenticator(InputBuffer buf,
                     int hashSize,
                     int signatureSize)
              throws IOException
Throws:
IOException
Method Detail

getPartToHashThenSign

public ByteBuffer getPartToHashThenSign()

serialize

public void serialize(OutputBuffer buf)
               throws IOException
Throws:
IOException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Authenticator that)
Specified by:
compareTo in interface Comparable<Authenticator>

getSeq

public long getSeq()

toString

public String toString()
Overrides:
toString in class Object

getHash

public byte[] getHash()

getSignature

public byte[] getSignature()


Copyright © 2010. All Rights Reserved.