public class IdentityManagement extends Object implements PeerStatusListener
PeerStatusListener.Reason| Constructor and Description |
|---|
IdentityManagement(PeerAddress self) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIdentity(Number160 peerId,
PublicKey publicKey) |
PeerAddress |
getPeerAddress() |
Number160 |
getSelf() |
void |
peerFail(PeerAddress peerAddress,
boolean force)
Called if the peer does not send answer in time.
|
void |
peerOffline(PeerAddress peerAddress,
PeerStatusListener.Reason reason)
Called if the peer does not send multiple answer in time.
|
void |
peerOnline(PeerAddress peerAddress)
Called if the peer is online and we verified it.
|
public IdentityManagement(PeerAddress self)
public void peerOffline(PeerAddress peerAddress, PeerStatusListener.Reason reason)
PeerStatusListenerpeerOffline in interface PeerStatusListenerpeerAddress - The address of the peer that went offlinepublic void peerFail(PeerAddress peerAddress, boolean force)
PeerStatusListenerpeerFail in interface PeerStatusListenerpeerAddress - The address of the peer that failedforce - Set to true if we are sure that the peer died.public void peerOnline(PeerAddress peerAddress)
PeerStatusListenerpeerOnline in interface PeerStatusListenerpeerAddress - The address of the peer that is online.public Number160 getSelf()
public PeerAddress getPeerAddress()
Copyright © 2013. All Rights Reserved.