mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
35 lines
641 B
Java
35 lines
641 B
Java
package org.briarproject.api.clients;
|
|
|
|
import org.briarproject.api.nullsafety.NotNullByDefault;
|
|
import org.briarproject.api.sync.Group;
|
|
|
|
import javax.annotation.concurrent.Immutable;
|
|
|
|
@Immutable
|
|
@NotNullByDefault
|
|
public abstract class NamedGroup extends BaseGroup {
|
|
|
|
private final String name;
|
|
private final byte[] salt;
|
|
|
|
public NamedGroup(Group group, String name, byte[] salt) {
|
|
super(group);
|
|
this.name = name;
|
|
this.salt = salt;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public byte[] getSalt() {
|
|
return salt;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
return o instanceof NamedGroup && super.equals(o);
|
|
}
|
|
|
|
}
|