public OmemoFingerprint getFingerprint ( OmemoDevice device ) throws CannotEstablishOmemoSessionException , SmackException . NotLoggedInException , CorruptedOmemoKeyException , SmackException . NotConnectedException , InterruptedException , SmackException . NoResponseException { synchronized ( LOCK ) { if ( getOwnJid ( ) == null ) { throw new SmackException . NotLoggedInException ( ) ; } if ( device . equals ( getOwnDevice ( ) ) ) { return getOwnFingerprint ( ) ; } return getOmemoService ( ) . getOmemoStoreBackend ( ) . getFingerprintAndMaybeBuildSession ( new LoggedInOmemoManager ( this ) , device ) ; } }
Get the fingerprint of a contacts device .