mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
The initiator flag in the transport protocol makes this unnecessary by linking the two sides of a stream-mode connection, making it impossible for an attacker to replay the responder's side of a different connection.
20 lines
375 B
Java
20 lines
375 B
Java
package net.sf.briar.protocol;
|
|
|
|
import java.util.Collection;
|
|
|
|
import net.sf.briar.api.protocol.MessageId;
|
|
import net.sf.briar.api.protocol.Offer;
|
|
|
|
class OfferImpl implements Offer {
|
|
|
|
private final Collection<MessageId> offered;
|
|
|
|
OfferImpl(Collection<MessageId> offered) {
|
|
this.offered = offered;
|
|
}
|
|
|
|
public Collection<MessageId> getMessageIds() {
|
|
return offered;
|
|
}
|
|
}
|