Class ScannableFingerprint
- java.lang.Object
-
- org.signal.libsignal.protocol.fingerprint.ScannableFingerprint
-
public class ScannableFingerprint extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompareTo(byte[] scannedFingerprintData)Native.ScannableFingerprint_Compare a scanned QR code with what we expect.byte[]getSerialized()
-
-
-
Method Detail
-
getSerialized
public byte[] getSerialized()
- Returns:
- A byte string to be displayed in a QR code.
-
compareTo
public boolean compareTo(byte[] scannedFingerprintData) throws FingerprintVersionMismatchException, FingerprintParsingExceptionNative.ScannableFingerprint_Compare a scanned QR code with what we expect.- Parameters:
scannedFingerprintData- The scanned data- Returns:
- True if matching, otherwise false.
- Throws:
FingerprintVersionMismatchException- if the scanned fingerprint is the wrong version.FingerprintParsingException
-
-