bt.service.IdentityService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bt-core Show documentation
Show all versions of bt-core Show documentation
BitTorrent Client Library (Core)
package bt.service;
import bt.net.PeerId;
import bt.tracker.SecretKey;
import java.util.Optional;
/**
* Identity service.
*
* @since 1.0
*/
public interface IdentityService {
/**
* @return Peer ID used by current runtime
*/
PeerId getLocalPeerId();
/**
* @return Secret key used for interaction with HTTP trackers
* @since 1.0
*/
Optional getSecretKey();
}