Class ECPrivateKey
- java.lang.Object
-
- org.signal.libsignal.protocol.ecc.ECPrivateKey
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class ECPrivateKey extends java.lang.Object implements NativeHandleGuard.Owner
-
-
Constructor Summary
Constructors Constructor Description ECPrivateKey(long nativeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]calculateAgreement(ECPublicKey other)byte[]calculateSignature(byte[] message)protected voidfinalize()ECPublicKeypublicKey()byte[]serialize()longunsafeNativeHandleWithoutGuard()
-
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
serialize
public byte[] serialize()
-
calculateSignature
public byte[] calculateSignature(byte[] message)
-
calculateAgreement
public byte[] calculateAgreement(ECPublicKey other)
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
publicKey
public ECPublicKey publicKey()
-
-