2020-09-25 12:58:27 +02:00
|
|
|
package org.jivesoftware.smackx.ikey.record;
|
2020-09-02 16:40:36 +02:00
|
|
|
|
2020-10-24 19:25:28 +02:00
|
|
|
import org.bouncycastle.openpgp.PGPSecretKeyRing;
|
2020-09-06 21:41:38 +02:00
|
|
|
import org.jivesoftware.smackx.ikey.element.IkeyElement;
|
2020-10-24 19:25:28 +02:00
|
|
|
import org.jivesoftware.smackx.ox.OpenPgpSecretKeyBackupPassphrase;
|
2020-09-02 16:40:36 +02:00
|
|
|
import org.jxmpp.jid.EntityBareJid;
|
|
|
|
|
2020-09-06 21:41:38 +02:00
|
|
|
import java.io.IOException;
|
2020-09-02 16:40:36 +02:00
|
|
|
|
|
|
|
public interface IkeyStore {
|
|
|
|
|
2020-09-06 21:41:38 +02:00
|
|
|
IkeyElement loadIkeyRecord(EntityBareJid jid) throws IOException;
|
2020-09-02 16:40:36 +02:00
|
|
|
|
2020-09-06 21:41:38 +02:00
|
|
|
void storeIkeyRecord(EntityBareJid jid, IkeyElement record) throws IOException;
|
2020-10-24 19:25:28 +02:00
|
|
|
|
|
|
|
PGPSecretKeyRing loadSecretKey();
|
|
|
|
|
|
|
|
void storeSecretKey(PGPSecretKeyRing secretKey);
|
|
|
|
|
|
|
|
OpenPgpSecretKeyBackupPassphrase loadBackupPassphrase();
|
|
|
|
|
|
|
|
void storeBackupPassphrase(OpenPgpSecretKeyBackupPassphrase passphrase);
|
2020-09-02 16:40:36 +02:00
|
|
|
}
|