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)
PeerStatusListener
peerOffline
in interface PeerStatusListener
peerAddress
- The address of the peer that went offlinepublic void peerFail(PeerAddress peerAddress, boolean force)
PeerStatusListener
peerFail
in interface PeerStatusListener
peerAddress
- The address of the peer that failedforce
- Set to true if we are sure that the peer died.public void peerOnline(PeerAddress peerAddress)
PeerStatusListener
peerOnline
in interface PeerStatusListener
peerAddress
- The address of the peer that is online.public Number160 getSelf()
public PeerAddress getPeerAddress()
Copyright © 2013. All Rights Reserved.