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

org.whispersystems.libaxolotl.fingerprint.DisplayableFingerprint Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.whispersystems.libaxolotl.fingerprint;

public class DisplayableFingerprint {

  private final String localFingerprint;
  private final String remoteFingerprint;

  public DisplayableFingerprint(String localFingerprint, String remoteFingerprint) {
    this.localFingerprint  = localFingerprint;
    this.remoteFingerprint = remoteFingerprint;
  }

  public String getDisplayText() {
    if (localFingerprint.compareTo(remoteFingerprint) <= 0) {
      return localFingerprint + remoteFingerprint;
    } else {
      return remoteFingerprint + localFingerprint;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy