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

org.whispersystems.signalservice.internal.util.StaticCredentialsProvider Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
/**
 * 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy