All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.signalservice.api.messages.SignalServicePniSignatureMessage Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
package org.whispersystems.signalservice.api.messages;


import org.whispersystems.signalservice.api.push.ServiceId.PNI;

/**
 * When someone sends a message to your PNI, you need to attach one of these PNI signature messages,
 * proving that you own the PNI identity.
 *
 * The signature is generated by signing your ACI public key with your PNI identity.
 */
public class SignalServicePniSignatureMessage {

  private final PNI    pni;
  private final byte[] signature;

  public SignalServicePniSignatureMessage(PNI pni, byte[] signature) {
    this.pni       = pni;
    this.signature = signature;
  }

  public PNI getPni() {
    return pni;
  }

  public byte[] getSignature() {
    return signature;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy