public class IdentityManagement extends Object implements PeerStatusListener
PeerStatusListener.FailReason| Constructor and Description |
|---|
IdentityManagement(PeerAddress self) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIdentity(Number160 peerId,
PublicKey publicKey) |
PeerAddress |
getPeerAddress() |
Number160 |
getSelf() |
boolean |
peerFailed(PeerAddress peerAddress,
PeerStatusListener.FailReason reason)
Called if the peer does not send answer in time.
|
boolean |
peerFound(PeerAddress peerAddress,
PeerAddress referrer)
Called if the peer is online and who reported it.
|
public IdentityManagement(PeerAddress self)
public boolean peerFailed(PeerAddress peerAddress, PeerStatusListener.FailReason reason)
PeerStatusListenerpeerFailed in interface PeerStatusListenerpeerAddress - The address of the peer that failedpublic boolean peerFound(PeerAddress peerAddress, PeerAddress referrer)
PeerStatusListenerpeerFound in interface PeerStatusListenerpeerAddress - The address of the peer that is online.referrer - the peer that reported the availability of peerAddresspublic Number160 getSelf()
public PeerAddress getPeerAddress()
Copyright © 2014. All rights reserved.