java.lang.Object
it.auties.whatsapp.model.signal.session.SessionState
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final ConcurrentHashMap<String, SessionChain> private booleanprivate SignalKeyPairprivate byte[]private SessionPreKeyprivate intprivate final intprivate final byte[]private byte[]private final int -
Constructor Summary
ConstructorsConstructorDescriptionSessionState(int version, int registrationId, byte[] baseKey, byte[] remoteIdentityKey, ConcurrentHashMap<String, SessionChain> chains, byte[] rootKey, SessionPreKey pendingPreKey, SignalKeyPair ephemeralKeyPair, byte[] lastRemoteEphemeralKey, int previousCounter, boolean closed) -
Method Summary
Modifier and TypeMethodDescriptionaddChain(byte[] senderEphemeral, SessionChain chain) byte[]baseKey()chains()booleanclosed()closed(boolean closed) booleancontentEquals(int version, byte[] baseKey) ephemeralKeyPair(SignalKeyPair ephemeralKeyPair) booleanfindChain(byte[] senderEphemeral) booleanhasChain(byte[] senderEphemeral) inthashCode()booleanbyte[]lastRemoteEphemeralKey(byte[] lastRemoteEphemeralKey) pendingPreKey(SessionPreKey pendingPreKey) intpreviousCounter(int previousCounter) intbyte[]voidremoveChain(byte[] senderEphemeral) byte[]rootKey()rootKey(byte[] rootKey) intversion()
-
Field Details
-
version
private final int version -
registrationId
private final int registrationId -
baseKey
private final byte[] baseKey -
remoteIdentityKey
private final byte[] remoteIdentityKey -
chains
-
rootKey
private byte[] rootKey -
pendingPreKey
-
ephemeralKeyPair
-
lastRemoteEphemeralKey
private byte[] lastRemoteEphemeralKey -
previousCounter
private int previousCounter -
closed
private boolean closed
-
-
Constructor Details
-
SessionState
public SessionState(int version, int registrationId, byte[] baseKey, byte[] remoteIdentityKey, ConcurrentHashMap<String, SessionChain> chains, byte[] rootKey, SessionPreKey pendingPreKey, SignalKeyPair ephemeralKeyPair, byte[] lastRemoteEphemeralKey, int previousCounter, boolean closed)
-
-
Method Details
-
hasChain
public boolean hasChain(byte[] senderEphemeral) -
findChain
-
addChain
-
removeChain
public void removeChain(byte[] senderEphemeral) -
hasPreKey
public boolean hasPreKey() -
hashCode
public int hashCode() -
equals
-
contentEquals
public boolean contentEquals(int version, byte[] baseKey) -
version
public int version() -
registrationId
public int registrationId() -
baseKey
public byte[] baseKey() -
remoteIdentityKey
public byte[] remoteIdentityKey() -
rootKey
public byte[] rootKey() -
pendingPreKey
-
ephemeralKeyPair
-
lastRemoteEphemeralKey
public byte[] lastRemoteEphemeralKey() -
previousCounter
public int previousCounter() -
closed
public boolean closed() -
rootKey
-
pendingPreKey
-
ephemeralKeyPair
-
lastRemoteEphemeralKey
-
previousCounter
-
closed
-
chains
-