org.mpisws.p2p.transport.peerreview.commitment
Class Authenticator
java.lang.Object
org.mpisws.p2p.transport.peerreview.commitment.Authenticator
- All Implemented Interfaces:
- Comparable<Authenticator>
public class Authenticator
- extends Object
- implements Comparable<Authenticator>
Authenticator
public Authenticator(long seq,
byte[] hash,
byte[] signature)
Authenticator
public Authenticator(InputBuffer buf,
int hashSize,
int signatureSize)
throws IOException
- Throws:
IOException
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.