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(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(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.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) |
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.IdentityKeyStorepublic int getLocalRegistrationId()
getLocalRegistrationId in interface org.whispersystems.libsignal.state.IdentityKeyStorepublic void saveIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.IdentityKey identityKey)
saveIdentity in interface org.whispersystems.libsignal.state.IdentityKeyStorepublic boolean isTrustedIdentity(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.IdentityKey identityKey)
isTrustedIdentity in interface org.whispersystems.libsignal.state.IdentityKeyStorepublic org.whispersystems.libsignal.state.PreKeyRecord loadPreKey(int i) throws org.whispersystems.libsignal.InvalidKeyIdException
loadPreKey in interface org.whispersystems.libsignal.state.PreKeyStoreorg.whispersystems.libsignal.InvalidKeyIdExceptionpublic void storePreKey(int i, org.whispersystems.libsignal.state.PreKeyRecord preKeyRecord)
storePreKey in interface org.whispersystems.libsignal.state.PreKeyStorepublic boolean containsPreKey(int i)
containsPreKey in interface org.whispersystems.libsignal.state.PreKeyStorepublic void removePreKey(int i)
removePreKey in interface org.whispersystems.libsignal.state.PreKeyStorepublic org.whispersystems.libsignal.state.SessionRecord loadSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
loadSession in interface org.whispersystems.libsignal.state.SessionStorepublic java.util.List<java.lang.Integer> getSubDeviceSessions(java.lang.String s)
getSubDeviceSessions in interface org.whispersystems.libsignal.state.SessionStorepublic void storeSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress, org.whispersystems.libsignal.state.SessionRecord sessionRecord)
storeSession in interface org.whispersystems.libsignal.state.SessionStorepublic boolean containsSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
containsSession in interface org.whispersystems.libsignal.state.SessionStorepublic void deleteSession(org.whispersystems.libsignal.SignalProtocolAddress signalProtocolAddress)
deleteSession in interface org.whispersystems.libsignal.state.SessionStorepublic void deleteAllSessions(java.lang.String s)
deleteAllSessions in interface org.whispersystems.libsignal.state.SessionStorepublic org.whispersystems.libsignal.state.SignedPreKeyRecord loadSignedPreKey(int i) throws org.whispersystems.libsignal.InvalidKeyIdException
loadSignedPreKey in interface org.whispersystems.libsignal.state.SignedPreKeyStoreorg.whispersystems.libsignal.InvalidKeyIdExceptionpublic java.util.List<org.whispersystems.libsignal.state.SignedPreKeyRecord> loadSignedPreKeys()
loadSignedPreKeys in interface org.whispersystems.libsignal.state.SignedPreKeyStorepublic void storeSignedPreKey(int i, org.whispersystems.libsignal.state.SignedPreKeyRecord signedPreKeyRecord)
storeSignedPreKey in interface org.whispersystems.libsignal.state.SignedPreKeyStorepublic boolean containsSignedPreKey(int i)
containsSignedPreKey in interface org.whispersystems.libsignal.state.SignedPreKeyStorepublic void removeSignedPreKey(int i)
removeSignedPreKey in interface org.whispersystems.libsignal.state.SignedPreKeyStore