Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.otr
Class ScOtrKeyManagerImpl

java.lang.Object
  extended by net.java.sip.communicator.plugin.otr.ScOtrKeyManagerImpl
All Implemented Interfaces:
ScOtrKeyManager

public class ScOtrKeyManagerImpl
extends Object
implements ScOtrKeyManager

Author:
George Politis

Constructor Summary
ScOtrKeyManagerImpl()
           
 
Method Summary
 void addListener(ScOtrKeyManagerListener l)
           
 void generateKeyPair(AccountID account)
           
 String getLocalFingerprint(AccountID account)
           
 String getRemoteFingerprint(Contact contact)
           
 boolean isVerified(Contact contact)
           
 KeyPair loadKeyPair(AccountID account)
           
 PublicKey loadPublicKey(Contact contact)
           
 void removeListener(ScOtrKeyManagerListener l)
           
 void savePublicKey(Contact contact, PublicKey pubKey)
           
 void unverify(Contact contact)
           
 void verify(Contact contact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScOtrKeyManagerImpl

public ScOtrKeyManagerImpl()
Method Detail

addListener

public void addListener(ScOtrKeyManagerListener l)
Specified by:
addListener in interface ScOtrKeyManager

removeListener

public void removeListener(ScOtrKeyManagerListener l)
Specified by:
removeListener in interface ScOtrKeyManager

verify

public void verify(Contact contact)
Specified by:
verify in interface ScOtrKeyManager

unverify

public void unverify(Contact contact)
Specified by:
unverify in interface ScOtrKeyManager

isVerified

public boolean isVerified(Contact contact)
Specified by:
isVerified in interface ScOtrKeyManager

getRemoteFingerprint

public String getRemoteFingerprint(Contact contact)
Specified by:
getRemoteFingerprint in interface ScOtrKeyManager

getLocalFingerprint

public String getLocalFingerprint(AccountID account)
Specified by:
getLocalFingerprint in interface ScOtrKeyManager

savePublicKey

public void savePublicKey(Contact contact,
                          PublicKey pubKey)
Specified by:
savePublicKey in interface ScOtrKeyManager

loadPublicKey

public PublicKey loadPublicKey(Contact contact)
Specified by:
loadPublicKey in interface ScOtrKeyManager

loadKeyPair

public KeyPair loadKeyPair(AccountID account)
Specified by:
loadKeyPair in interface ScOtrKeyManager

generateKeyPair

public void generateKeyPair(AccountID account)
Specified by:
generateKeyPair in interface ScOtrKeyManager

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.