mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Changed the root package from net.sf.briar to org.briarproject.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package net.sf.briar.api.messaging.duplex;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.plugins.duplex.DuplexTransportConnection;
|
||||
import net.sf.briar.api.transport.ConnectionContext;
|
||||
|
||||
public interface DuplexConnectionFactory {
|
||||
|
||||
void createIncomingConnection(ConnectionContext ctx,
|
||||
DuplexTransportConnection d);
|
||||
|
||||
void createOutgoingConnection(ContactId c, TransportId t,
|
||||
DuplexTransportConnection d);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package net.sf.briar.api.messaging.simplex;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.plugins.simplex.SimplexTransportReader;
|
||||
import net.sf.briar.api.plugins.simplex.SimplexTransportWriter;
|
||||
import net.sf.briar.api.transport.ConnectionContext;
|
||||
|
||||
public interface SimplexConnectionFactory {
|
||||
|
||||
void createIncomingConnection(ConnectionContext ctx,
|
||||
SimplexTransportReader r);
|
||||
|
||||
void createOutgoingConnection(ContactId c, TransportId t,
|
||||
SimplexTransportWriter w);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
/** A pseudonym for a user. */
|
||||
public class Author {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
public interface AuthorConstants {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
public interface AuthorFactory {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
public class Contact {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
/**
|
||||
* Type-safe wrapper for an integer that uniquely identifies a contact within
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
/** A pseudonym for the local user. */
|
||||
public class LocalAuthor extends Author {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
public interface TransportPropertyConstants {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api;
|
||||
package org.briarproject.api;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.android;
|
||||
package org.briarproject.api.android;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.android;
|
||||
package org.briarproject.api.android;
|
||||
|
||||
import static java.lang.annotation.ElementType.FIELD;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.android;
|
||||
package org.briarproject.api.android;
|
||||
|
||||
/**
|
||||
* Manages mappings between object references and serialisable handles. This
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.security.SecureRandom;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import static java.lang.annotation.ElementType.FIELD;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.lifecycle.Service;
|
||||
import net.sf.briar.api.transport.ConnectionContext;
|
||||
import net.sf.briar.api.transport.Endpoint;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.lifecycle.Service;
|
||||
import org.briarproject.api.transport.ConnectionContext;
|
||||
import org.briarproject.api.transport.Endpoint;
|
||||
|
||||
public interface KeyManager extends Service {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
/** A key pair consisting of a {@link PublicKey} and a {@link PrivateKey). */
|
||||
public class KeyPair {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
public interface MessageDigest {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
/** The private half of a public/private {@link KeyPair}. */
|
||||
public interface PrivateKey {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
/** A deterministic PRNG. */
|
||||
public interface PseudoRandom {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
/** The public half of a public/private {@link KeyPair}. */
|
||||
public interface PublicKey {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
/** A secret key used for encryption and/or authentication. */
|
||||
public interface SecretKey {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.crypto;
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a duplicate contact is added to the database. This exception may
|
||||
@@ -1,34 +1,34 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.briar.api.Author;
|
||||
import net.sf.briar.api.AuthorId;
|
||||
import net.sf.briar.api.Contact;
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.LocalAuthor;
|
||||
import net.sf.briar.api.TransportConfig;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.TransportProperties;
|
||||
import net.sf.briar.api.event.EventListener;
|
||||
import net.sf.briar.api.messaging.Ack;
|
||||
import net.sf.briar.api.messaging.Group;
|
||||
import net.sf.briar.api.messaging.GroupId;
|
||||
import net.sf.briar.api.messaging.GroupStatus;
|
||||
import net.sf.briar.api.messaging.Message;
|
||||
import net.sf.briar.api.messaging.MessageId;
|
||||
import net.sf.briar.api.messaging.Offer;
|
||||
import net.sf.briar.api.messaging.Request;
|
||||
import net.sf.briar.api.messaging.RetentionAck;
|
||||
import net.sf.briar.api.messaging.RetentionUpdate;
|
||||
import net.sf.briar.api.messaging.SubscriptionAck;
|
||||
import net.sf.briar.api.messaging.SubscriptionUpdate;
|
||||
import net.sf.briar.api.messaging.TransportAck;
|
||||
import net.sf.briar.api.messaging.TransportUpdate;
|
||||
import net.sf.briar.api.transport.Endpoint;
|
||||
import net.sf.briar.api.transport.TemporarySecret;
|
||||
import org.briarproject.api.Author;
|
||||
import org.briarproject.api.AuthorId;
|
||||
import org.briarproject.api.Contact;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.LocalAuthor;
|
||||
import org.briarproject.api.TransportConfig;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.TransportProperties;
|
||||
import org.briarproject.api.event.EventListener;
|
||||
import org.briarproject.api.messaging.Ack;
|
||||
import org.briarproject.api.messaging.Group;
|
||||
import org.briarproject.api.messaging.GroupId;
|
||||
import org.briarproject.api.messaging.GroupStatus;
|
||||
import org.briarproject.api.messaging.Message;
|
||||
import org.briarproject.api.messaging.MessageId;
|
||||
import org.briarproject.api.messaging.Offer;
|
||||
import org.briarproject.api.messaging.Request;
|
||||
import org.briarproject.api.messaging.RetentionAck;
|
||||
import org.briarproject.api.messaging.RetentionUpdate;
|
||||
import org.briarproject.api.messaging.SubscriptionAck;
|
||||
import org.briarproject.api.messaging.SubscriptionUpdate;
|
||||
import org.briarproject.api.messaging.TransportAck;
|
||||
import org.briarproject.api.messaging.TransportUpdate;
|
||||
import org.briarproject.api.transport.Endpoint;
|
||||
import org.briarproject.api.transport.TemporarySecret;
|
||||
|
||||
/**
|
||||
* Encapsulates the database implementation and exposes high-level operations
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
import static java.lang.annotation.ElementType.FIELD;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/** Thrown when a database operation is attempted and the database is closed. */
|
||||
public class DbClosedException extends DbException {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
public class DbException extends Exception {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a duplicate pseudonym is added to the database. This exception
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
import net.sf.briar.api.Author;
|
||||
import net.sf.briar.api.messaging.GroupId;
|
||||
import net.sf.briar.api.messaging.MessageId;
|
||||
import org.briarproject.api.Author;
|
||||
import org.briarproject.api.messaging.GroupId;
|
||||
import org.briarproject.api.messaging.MessageId;
|
||||
|
||||
public class MessageHeader {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a database operation is attempted for a contact that is not in
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a database operation is attempted for a pseudonym that is not in
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a database operation is attempted for a message that is not in
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a database operation is attempted for a group to which the user
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.db;
|
||||
package org.briarproject.api.db;
|
||||
|
||||
/**
|
||||
* Thrown when a database operation is attempted for a transport that is not in
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/** An event that is broadcast when a contact is added. */
|
||||
public class ContactAddedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/** An event that is broadcast when a contact is removed. */
|
||||
public class ContactRemovedEvent extends Event {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
/** An abstract superclass for events. */
|
||||
public abstract class Event {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
/** An interface for receiving notifications when events occur. */
|
||||
public interface EventListener {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.AuthorId;
|
||||
import org.briarproject.api.AuthorId;
|
||||
|
||||
/** An event that is broadcast when a local pseudonym is added. */
|
||||
public class LocalAuthorAddedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.AuthorId;
|
||||
import org.briarproject.api.AuthorId;
|
||||
|
||||
/** An event that is broadcast when a local pseudonym is removed. */
|
||||
public class LocalAuthorRemovedEvent extends Event {
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when the set of subscriptions visible to one or
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when the local transport properties are
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.messaging.Group;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.messaging.Group;
|
||||
|
||||
/** An event that is broadcast when a message is added to the database. */
|
||||
public class MessageAddedEvent extends Event {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when one or messages expire from the database,
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/** An event that is broadcast when a message is requested by a contact. */
|
||||
public class MessageRequestedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when a message is received from or offered by a
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when a message is offered by a contact and needs
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when the retention time of a contact's database
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import org.briarproject.api.ContactId;
|
||||
|
||||
/** An event that is broadcast when a contact's subscriptions are updated. */
|
||||
public class RemoteSubscriptionsUpdatedEvent extends Event {
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
|
||||
/**
|
||||
* An event that is broadcast when a contact's remote transport properties
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.messaging.Group;
|
||||
import org.briarproject.api.messaging.Group;
|
||||
|
||||
/** An event that is broadcast when the user subscribes to a group. */
|
||||
public class SubscriptionAddedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.messaging.Group;
|
||||
import org.briarproject.api.messaging.Group;
|
||||
|
||||
/** An event that is broadcast when the user unsubscribes from a group. */
|
||||
public class SubscriptionRemovedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.TransportId;
|
||||
import org.briarproject.api.TransportId;
|
||||
|
||||
/** An event that is broadcast when a transport is added. */
|
||||
public class TransportAddedEvent extends Event {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.event;
|
||||
package org.briarproject.api.event;
|
||||
|
||||
import net.sf.briar.api.TransportId;
|
||||
import org.briarproject.api.TransportId;
|
||||
|
||||
/** An event that is broadcast when a transport is removed. */
|
||||
public class TransportRemovedEvent extends Event {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.invitation;
|
||||
package org.briarproject.api.invitation;
|
||||
|
||||
public interface InvitationConstants {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.invitation;
|
||||
package org.briarproject.api.invitation;
|
||||
|
||||
/**
|
||||
* An interface for receiving updates about the state of an
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.invitation;
|
||||
package org.briarproject.api.invitation;
|
||||
|
||||
public class InvitationState {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.invitation;
|
||||
package org.briarproject.api.invitation;
|
||||
|
||||
/** A task for exchanging invitations with a remote peer. */
|
||||
public interface InvitationTask {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.invitation;
|
||||
package org.briarproject.api.invitation;
|
||||
|
||||
import net.sf.briar.api.AuthorId;
|
||||
import org.briarproject.api.AuthorId;
|
||||
|
||||
/** Creates tasks for exchanging invitations with remote peers. */
|
||||
public interface InvitationTaskFactory {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.lifecycle;
|
||||
package org.briarproject.api.lifecycle;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.lifecycle;
|
||||
package org.briarproject.api.lifecycle;
|
||||
|
||||
public interface Service {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.lifecycle;
|
||||
package org.briarproject.api.lifecycle;
|
||||
|
||||
public interface ShutdownManager {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
/** A group to which users may subscribe. */
|
||||
public class Group {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
public interface GroupFactory {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.sf.briar.api.UniqueId;
|
||||
import org.briarproject.api.UniqueId;
|
||||
|
||||
/**
|
||||
* Type-safe wrapper for a byte array that uniquely identifies a {@link Group}.
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
public class GroupStatus {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import net.sf.briar.api.Author;
|
||||
import org.briarproject.api.Author;
|
||||
|
||||
public interface Message {
|
||||
|
||||
@@ -20,7 +20,7 @@ public interface Message {
|
||||
Group getGroup();
|
||||
|
||||
/**
|
||||
* Returns the message's {@link net.sf.briar.api.Author Author}, or null
|
||||
* Returns the message's {@link org.briarproject.api.Author Author}, or null
|
||||
* if this is an anonymous message.
|
||||
*/
|
||||
Author getAuthor();
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
import net.sf.briar.api.Author;
|
||||
import net.sf.briar.api.crypto.PrivateKey;
|
||||
import org.briarproject.api.Author;
|
||||
import org.briarproject.api.crypto.PrivateKey;
|
||||
|
||||
public interface MessageFactory {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.sf.briar.api.UniqueId;
|
||||
import org.briarproject.api.UniqueId;
|
||||
|
||||
/**
|
||||
* Type-safe wrapper for a byte array that uniquely identifies a
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import static net.sf.briar.api.transport.TransportConstants.MIN_CONNECTION_LENGTH;
|
||||
import static org.briarproject.api.transport.TransportConstants.MIN_CONNECTION_LENGTH;
|
||||
|
||||
public interface MessagingConstants {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.io.OutputStream;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
/** A packet acknowledging a (@link RetentionUpdate} */
|
||||
public class RetentionAck {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
/**
|
||||
* A packet updating the recipient's view of the retention time of the sender's
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
/** A packet acknowledging a {@link SubscriptionUpdate}. */
|
||||
public class SubscriptionAck {
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import net.sf.briar.api.TransportId;
|
||||
import org.briarproject.api.TransportId;
|
||||
|
||||
/** A packet acknowledging a {@link TransportUpdate}. */
|
||||
public class TransportAck {
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import net.sf.briar.api.TransportId;
|
||||
import net.sf.briar.api.TransportProperties;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.TransportProperties;
|
||||
|
||||
/**
|
||||
* A packet updating the recipient's view of the sender's transport properties.
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
/** Struct identifiers for encoding and decoding protocol objects. */
|
||||
public interface Types {
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.sf.briar.api.messaging;
|
||||
package org.briarproject.api.messaging;
|
||||
|
||||
import net.sf.briar.api.Author;
|
||||
import org.briarproject.api.Author;
|
||||
|
||||
/** A {@link Message} that has not yet had its signatures (if any) verified. */
|
||||
public class UnverifiedMessage {
|
||||
@@ -45,7 +45,7 @@ public class UnverifiedMessage {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message's {@link net.sf.briar.api.Author Author}, or null
|
||||
* Returns the message's {@link org.briarproject.api.Author Author}, or null
|
||||
* if this is an anonymous message.
|
||||
*/
|
||||
public Author getAuthor() {
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.briarproject.api.messaging.duplex;
|
||||
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.plugins.duplex.DuplexTransportConnection;
|
||||
import org.briarproject.api.transport.ConnectionContext;
|
||||
|
||||
public interface DuplexConnectionFactory {
|
||||
|
||||
void createIncomingConnection(ConnectionContext ctx,
|
||||
DuplexTransportConnection d);
|
||||
|
||||
void createOutgoingConnection(ContactId c, TransportId t,
|
||||
DuplexTransportConnection d);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.briarproject.api.messaging.simplex;
|
||||
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.plugins.simplex.SimplexTransportReader;
|
||||
import org.briarproject.api.plugins.simplex.SimplexTransportWriter;
|
||||
import org.briarproject.api.transport.ConnectionContext;
|
||||
|
||||
public interface SimplexConnectionFactory {
|
||||
|
||||
void createIncomingConnection(ConnectionContext ctx,
|
||||
SimplexTransportReader r);
|
||||
|
||||
void createOutgoingConnection(ContactId c, TransportId t,
|
||||
SimplexTransportWriter w);
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.sf.briar.api.plugins;
|
||||
package org.briarproject.api.plugins;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportId;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
|
||||
public interface Plugin {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.sf.briar.api.plugins;
|
||||
package org.briarproject.api.plugins;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.briar.api.ContactId;
|
||||
import net.sf.briar.api.TransportConfig;
|
||||
import net.sf.briar.api.TransportProperties;
|
||||
import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportConfig;
|
||||
import org.briarproject.api.TransportProperties;
|
||||
|
||||
/**
|
||||
* An interface through which a transport plugin interacts with the rest of
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user