org.whispersystems.signalservice.internal.util.StaticCredentialsProvider 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
/**
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.whispersystems.signalservice.internal.util;
import org.whispersystems.signalservice.api.push.ServiceId.ACI;
import org.whispersystems.signalservice.api.push.ServiceId.PNI;
import org.whispersystems.signalservice.api.util.CredentialsProvider;
public class StaticCredentialsProvider implements CredentialsProvider {
private final ACI aci;
private final PNI pni;
private final String e164;
private final int deviceId;
private final String password;
public StaticCredentialsProvider(ACI aci, PNI pni, String e164, int deviceId, String password) {
this.aci = aci;
this.pni = pni;
this.e164 = e164;
this.deviceId = deviceId;
this.password = password;
}
@Override
public ACI getAci() {
return aci;
}
@Override
public PNI getPni() {
return pni;
}
@Override
public String getE164() {
return e164;
}
@Override
public int getDeviceId() {
return deviceId;
}
@Override
public String getPassword() {
return password;
}
}