Class PreKeyBundle

    • 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:
        finalize in class java.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.
      • getRegistrationId

        public int getRegistrationId()
        Returns:
        the registration ID associated with this PreKey.