public class SealedSessionCipher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SealedSessionCipher.DecryptionResult |
| Constructor and Description |
|---|
SealedSessionCipher(org.whispersystems.libsignal.state.SignalProtocolStore signalProtocolStore,
java.util.UUID localUuid,
java.lang.String localE164Address,
int localDeviceId) |
| Modifier and Type | Method and Description |
|---|---|
SealedSessionCipher.DecryptionResult |
decrypt(CertificateValidator validator,
byte[] ciphertext,
long timestamp) |
byte[] |
encrypt(org.whispersystems.libsignal.SignalProtocolAddress destinationAddress,
SenderCertificate senderCertificate,
byte[] paddedPlaintext) |
int |
getRemoteRegistrationId(org.whispersystems.libsignal.SignalProtocolAddress remoteAddress) |
int |
getSessionVersion(org.whispersystems.libsignal.SignalProtocolAddress remoteAddress) |
public SealedSessionCipher(org.whispersystems.libsignal.state.SignalProtocolStore signalProtocolStore,
java.util.UUID localUuid,
java.lang.String localE164Address,
int localDeviceId)
public byte[] encrypt(org.whispersystems.libsignal.SignalProtocolAddress destinationAddress,
SenderCertificate senderCertificate,
byte[] paddedPlaintext)
throws org.whispersystems.libsignal.InvalidKeyException,
org.whispersystems.libsignal.UntrustedIdentityException
org.whispersystems.libsignal.InvalidKeyExceptionorg.whispersystems.libsignal.UntrustedIdentityExceptionpublic SealedSessionCipher.DecryptionResult decrypt(CertificateValidator validator, byte[] ciphertext, long timestamp) throws InvalidMetadataMessageException, InvalidMetadataVersionException, ProtocolInvalidMessageException, ProtocolInvalidKeyException, ProtocolNoSessionException, ProtocolLegacyMessageException, ProtocolInvalidVersionException, ProtocolDuplicateMessageException, ProtocolInvalidKeyIdException, ProtocolUntrustedIdentityException, SelfSendException
InvalidMetadataMessageExceptionInvalidMetadataVersionExceptionProtocolInvalidMessageExceptionProtocolInvalidKeyExceptionProtocolNoSessionExceptionProtocolLegacyMessageExceptionProtocolInvalidVersionExceptionProtocolDuplicateMessageExceptionProtocolInvalidKeyIdExceptionProtocolUntrustedIdentityExceptionSelfSendExceptionpublic int getSessionVersion(org.whispersystems.libsignal.SignalProtocolAddress remoteAddress)
public int getRemoteRegistrationId(org.whispersystems.libsignal.SignalProtocolAddress remoteAddress)