org.whispersystems.signalservice.api.profiles.ProfileAndCredential 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.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;
}
}