public class SignalOmemoStoreConnector
extends java.lang.Object
implements org.whispersystems.libsignal.state.IdentityKeyStore, org.whispersystems.libsignal.state.SessionStore, org.whispersystems.libsignal.state.PreKeyStore, org.whispersystems.libsignal.state.SignedPreKeyStore
Constructor and Description |
---|
SignalOmemoStoreConnector(org.jivesoftware.smackx.omemo.OmemoManager omemoManager,
org.jivesoftware.smackx.omemo.OmemoStore<org.whispersystems.libsignal.IdentityKeyPair,org.whispersystems.libsignal.IdentityKey,org.whispersystems.libsignal.state.PreKeyRecord,org.whispersystems.libsignal.state.SignedPreKeyRecord,org.whispersystems.libsignal.state.SessionRecord,org.whispersystems.libsignal.SignalProtocolAddress,org.whispersystems.libsignal.ecc.ECPublicKey,org.whispersystems.libsignal.state.PreKeyBundle,org.whispersystems.libsignal.SessionCipher> store) |
Modifier and Type | Method and Description |
---|---|
static org.whispersystems.libsignal.SignalProtocolAddress |
asAddress(org.jivesoftware.smackx.omemo.internal.OmemoDevice device) |
boolean |
containsPreKey(int i) |
boolean |
containsSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress) |
boolean |
containsSignedPreKey(int i) |
void |
deleteAllSessions(java.lang.String s) |
void |
deleteSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress) |
org.whispersystems.libsignal.IdentityKeyPair |
getIdentityKeyPair() |
int |
getLocalRegistrationId()
We don't use this.
|
java.util.List<java.lang.Integer> |
getSubDeviceSessions(java.lang.String s) |
boolean |
isTrustedIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress,
org.whispersystems.libsignal.IdentityKey identityKey,
org.whispersystems.libsignal.state.IdentityKeyStore.Direction direction) |
org.whispersystems.libsignal.state.PreKeyRecord |
loadPreKey(int i) |
org.whispersystems.libsignal.state.SessionRecord |
loadSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress) |
org.whispersystems.libsignal.state.SignedPreKeyRecord |
loadSignedPreKey(int i) |
java.util.List<org.whispersystems.libsignal.state.SignedPreKeyRecord> |
loadSignedPreKeys() |
void |
removePreKey(int i) |
void |
removeSignedPreKey(int i) |
boolean |
saveIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress,
org.whispersystems.libsignal.IdentityKey identityKey) |
void |
storePreKey(int i,
org.whispersystems.libsignal.state.PreKeyRecord preKeyRecord) |
void |
storeSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress,
org.whispersystems.libsignal.state.SessionRecord sessionRecord) |
void |
storeSignedPreKey(int i,
org.whispersystems.libsignal.state.SignedPreKeyRecord signedPreKeyRecord) |
public SignalOmemoStoreConnector(org.jivesoftware.smackx.omemo.OmemoManager omemoManager, org.jivesoftware.smackx.omemo.OmemoStore<org.whispersystems.libsignal.IdentityKeyPair,org.whispersystems.libsignal.IdentityKey,org.whispersystems.libsignal.state.PreKeyRecord,org.whispersystems.libsignal.state.SignedPreKeyRecord,org.whispersystems.libsignal.state.SessionRecord,org.whispersystems.libsignal.SignalProtocolAddress,org.whispersystems.libsignal.ecc.ECPublicKey,org.whispersystems.libsignal.state.PreKeyBundle,org.whispersystems.libsignal.SessionCipher> store)
public org.whispersystems.libsignal.IdentityKeyPair getIdentityKeyPair()
getIdentityKeyPair
in interface org.whispersystems.libsignal.state.IdentityKeyStore
public int getLocalRegistrationId()
getLocalRegistrationId
in interface org.whispersystems.libsignal.state.IdentityKeyStore
public boolean saveIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.IdentityKey identityKey)
saveIdentity
in interface org.whispersystems.libsignal.state.IdentityKeyStore
public boolean isTrustedIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.IdentityKey identityKey, org.whispersystems.libsignal.state.IdentityKeyStore.Direction direction)
isTrustedIdentity
in interface org.whispersystems.libsignal.state.IdentityKeyStore
public org.whispersystems.libsignal.state.PreKeyRecord loadPreKey(int i) throws org.whispersystems.libsignal.InvalidKeyIdException
loadPreKey
in interface org.whispersystems.libsignal.state.PreKeyStore
org.whispersystems.libsignal.InvalidKeyIdException
public void storePreKey(int i, org.whispersystems.libsignal.state.PreKeyRecord preKeyRecord)
storePreKey
in interface org.whispersystems.libsignal.state.PreKeyStore
public boolean containsPreKey(int i)
containsPreKey
in interface org.whispersystems.libsignal.state.PreKeyStore
public void removePreKey(int i)
removePreKey
in interface org.whispersystems.libsignal.state.PreKeyStore
public org.whispersystems.libsignal.state.SessionRecord loadSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
loadSession
in interface org.whispersystems.libsignal.state.SessionStore
public java.util.List<java.lang.Integer> getSubDeviceSessions(java.lang.String s)
getSubDeviceSessions
in interface org.whispersystems.libsignal.state.SessionStore
public void storeSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.state.SessionRecord sessionRecord)
storeSession
in interface org.whispersystems.libsignal.state.SessionStore
public boolean containsSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
containsSession
in interface org.whispersystems.libsignal.state.SessionStore
public void deleteSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
deleteSession
in interface org.whispersystems.libsignal.state.SessionStore
public void deleteAllSessions(java.lang.String s)
deleteAllSessions
in interface org.whispersystems.libsignal.state.SessionStore
public org.whispersystems.libsignal.state.SignedPreKeyRecord loadSignedPreKey(int i) throws org.whispersystems.libsignal.InvalidKeyIdException
loadSignedPreKey
in interface org.whispersystems.libsignal.state.SignedPreKeyStore
org.whispersystems.libsignal.InvalidKeyIdException
public java.util.List<org.whispersystems.libsignal.state.SignedPreKeyRecord> loadSignedPreKeys()
loadSignedPreKeys
in interface org.whispersystems.libsignal.state.SignedPreKeyStore
public void storeSignedPreKey(int i, org.whispersystems.libsignal.state.SignedPreKeyRecord signedPreKeyRecord)
storeSignedPreKey
in interface org.whispersystems.libsignal.state.SignedPreKeyStore
public boolean containsSignedPreKey(int i)
containsSignedPreKey
in interface org.whispersystems.libsignal.state.SignedPreKeyStore
public void removeSignedPreKey(int i)
removeSignedPreKey
in interface org.whispersystems.libsignal.state.SignedPreKeyStore
public static org.whispersystems.libsignal.SignalProtocolAddress asAddress(org.jivesoftware.smackx.omemo.internal.OmemoDevice device)