Added clarifying comment

This commit is contained in:
Christian Basler 2016-11-14 23:27:29 +01:00
parent df7f03d81a
commit 831e4bcbcc

View File

@ -21,6 +21,14 @@ import ch.dissem.bitmessage.entity.BitmessageAddress;
import java.util.List; import java.util.List;
public interface AddressRepository { public interface AddressRepository {
/**
* Returns a matching BitmessageAddress if there is one with the given ripe or tag, that
* has no public key yet. If it doesn't exist or already has a public key, null is returned.
*
* @param ripeOrTag Either ripe or tag (depending of address version) of an address with
* missing public key.
* @return the matching address if there is one without public key, or null otherwise.
*/
BitmessageAddress findContact(byte[] ripeOrTag); BitmessageAddress findContact(byte[] ripeOrTag);
BitmessageAddress findIdentity(byte[] ripeOrTag); BitmessageAddress findIdentity(byte[] ripeOrTag);