public class SignalOmemoStoreConnector extends 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(OmemoManager omemoManager,
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 |
---|---|
boolean |
containsPreKey(int i) |
boolean |
containsSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress) |
boolean |
containsSignedPreKey(int i) |
void |
deleteAllSessions(String s) |
void |
deleteSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress) |
org.whispersystems.libsignal.IdentityKeyPair |
getIdentityKeyPair() |
int |
getLocalRegistrationId()
We don't use this.
|
List<Integer> |
getSubDeviceSessions(String s) |
boolean |
isTrustedIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress,
org.whispersystems.libsignal.IdentityKey identityKey) |
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) |
List<org.whispersystems.libsignal.state.SignedPreKeyRecord> |
loadSignedPreKeys() |
void |
removePreKey(int i) |
void |
removeSignedPreKey(int i) |
void |
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(OmemoManager omemoManager, 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 void 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)
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 List<Integer> getSubDeviceSessions(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(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 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