org.whispersystems.signalservice.api.kbs.KbsData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java, unofficial fork
package org.whispersystems.signalservice.api.kbs;
/**
* Construct from a {@link org.signal.libsignal.svr2.PinHash}.
*/
public final class KbsData {
private final MasterKey masterKey;
private final byte[] kbsAccessKey;
private final byte[] cipherText;
KbsData(MasterKey masterKey, byte[] kbsAccessKey, byte[] cipherText) {
this.masterKey = masterKey;
this.kbsAccessKey = kbsAccessKey;
this.cipherText = cipherText;
}
public MasterKey getMasterKey() {
return masterKey;
}
public byte[] getKbsAccessKey() {
return kbsAccessKey;
}
public byte[] getCipherText() {
return cipherText;
}
}