Class PreKeyRecord
- java.lang.Object
-
- org.signal.libsignal.protocol.state.PreKeyRecord
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class PreKeyRecord extends java.lang.Object implements NativeHandleGuard.Owner
-
-
Constructor Summary
Constructors Constructor Description PreKeyRecord(byte[] serialized)PreKeyRecord(int id, ECKeyPair keyPair)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()intgetId()ECKeyPairgetKeyPair()byte[]serialize()longunsafeNativeHandleWithoutGuard()
-
-
-
Constructor Detail
-
PreKeyRecord
public PreKeyRecord(int id, ECKeyPair keyPair)
-
PreKeyRecord
public PreKeyRecord(byte[] serialized) throws InvalidMessageException- Throws:
InvalidMessageException
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
getId
public int getId()
-
getKeyPair
public ECKeyPair getKeyPair() throws InvalidKeyException
- Throws:
InvalidKeyException
-
serialize
public byte[] serialize()
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
-