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

org.whispersystems.signalservice.api.profiles.ProfileAndCredential Maven / Gradle / Ivy

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

import org.signal.libsignal.zkgroup.profiles.ExpiringProfileKeyCredential;

import java.util.Optional;


public final class ProfileAndCredential {

  private final SignalServiceProfile                   profile;
  private final SignalServiceProfile.RequestType       requestType;
  private final Optional expiringProfileKeyCredential;

  public ProfileAndCredential(SignalServiceProfile profile,
                              SignalServiceProfile.RequestType requestType,
                              Optional expiringProfileKeyCredential)
  {
    this.profile                      = profile;
    this.requestType                  = requestType;
    this.expiringProfileKeyCredential = expiringProfileKeyCredential;
  }

  public SignalServiceProfile getProfile() {
    return profile;
  }

  public SignalServiceProfile.RequestType getRequestType() {
    return requestType;
  }

  public Optional getExpiringProfileKeyCredential() {
    return expiringProfileKeyCredential;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy