All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bt.service.IdentityService Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy