blob: 157fe89b9aa8bac06c06bbbae913eb450d3b95b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.otr;
import java.security.*;
import net.java.sip.communicator.service.protocol.*;
/**
*
* @author George Politis
*
*/
public interface ScOtrKeyManager
{
public abstract void addListener(ScOtrKeyManagerListener l);
public abstract void removeListener(ScOtrKeyManagerListener l);
public abstract void verify(Contact contact);
public abstract void unverify(Contact contact);
public abstract boolean isVerified(Contact contact);
public abstract String getRemoteFingerprint(Contact contact);
public abstract String getLocalFingerprint(AccountID account);
public abstract void savePublicKey(Contact contact, PublicKey pubKey);
public abstract PublicKey loadPublicKey(Contact contact);
public abstract KeyPair loadKeyPair(AccountID accountID);
public abstract void generateKeyPair(AccountID accountID);
}
|