Class PreKeyBundle
- java.lang.Object
-
- org.signal.libsignal.protocol.state.PreKeyBundle
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class PreKeyBundle extends java.lang.Object implements NativeHandleGuard.Owner
A class that contains a remote PreKey and collection of associated items.
-
-
Constructor Summary
Constructors Constructor Description PreKeyBundle(int registrationId, int deviceId, int preKeyId, ECPublicKey preKeyPublic, int signedPreKeyId, ECPublicKey signedPreKeyPublic, byte[] signedPreKeySignature, IdentityKey identityKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()intgetDeviceId()IdentityKeygetIdentityKey()ECPublicKeygetPreKey()intgetPreKeyId()intgetRegistrationId()ECPublicKeygetSignedPreKey()intgetSignedPreKeyId()byte[]getSignedPreKeySignature()longunsafeNativeHandleWithoutGuard()
-
-
-
Constructor Detail
-
PreKeyBundle
public PreKeyBundle(int registrationId, int deviceId, int preKeyId, ECPublicKey preKeyPublic, int signedPreKeyId, ECPublicKey signedPreKeyPublic, byte[] signedPreKeySignature, IdentityKey identityKey)
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
getDeviceId
public int getDeviceId()
- Returns:
- the device ID this PreKey belongs to.
-
getPreKeyId
public int getPreKeyId()
- Returns:
- the unique key ID for this PreKey.
-
getPreKey
public ECPublicKey getPreKey()
- Returns:
- the public key for this PreKey.
-
getSignedPreKeyId
public int getSignedPreKeyId()
- Returns:
- the unique key ID for this signed prekey.
-
getSignedPreKey
public ECPublicKey getSignedPreKey()
- Returns:
- the signed prekey for this PreKeyBundle.
-
getSignedPreKeySignature
public byte[] getSignedPreKeySignature()
- Returns:
- the signature over the signed prekey.
-
getIdentityKey
public IdentityKey getIdentityKey()
- Returns:
- the
IdentityKeyof this PreKeys owner.
-
getRegistrationId
public int getRegistrationId()
- Returns:
- the registration ID associated with this PreKey.
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
-