mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
and TransportIndex (locally unique). This is the first step towards forward secrecy. Also removed the Writable interface and unnecessary user-defined types, moved various constants to ProtocolConstants and renamed some classes.
30 lines
520 B
Java
30 lines
520 B
Java
package net.sf.briar.protocol;
|
|
|
|
import net.sf.briar.api.protocol.Author;
|
|
import net.sf.briar.api.protocol.AuthorId;
|
|
|
|
class AuthorImpl implements Author {
|
|
|
|
private final AuthorId id;
|
|
private final String name;
|
|
private final byte[] publicKey;
|
|
|
|
AuthorImpl(AuthorId id, String name, byte[] publicKey) {
|
|
this.id = id;
|
|
this.name = name;
|
|
this.publicKey = publicKey;
|
|
}
|
|
|
|
public AuthorId getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public byte[] getPublicKey() {
|
|
return publicKey;
|
|
}
|
|
}
|