Class ECPublicKey
- java.lang.Object
-
- org.signal.libsignal.protocol.ecc.ECPublicKey
-
- All Implemented Interfaces:
java.lang.Comparable<ECPublicKey>,NativeHandleGuard.Owner
public class ECPublicKey extends java.lang.Object implements java.lang.Comparable<ECPublicKey>, NativeHandleGuard.Owner
-
-
Field Summary
Fields Modifier and Type Field Description static intKEY_SIZE
-
Constructor Summary
Constructors Constructor Description ECPublicKey(byte[] serialized)ECPublicKey(byte[] serialized, int offset)ECPublicKey(long nativeHandle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ECPublicKey another)booleanequals(java.lang.Object other)protected voidfinalize()static ECPublicKeyfromPublicKeyBytes(byte[] key)byte[]getPublicKeyBytes()intgetType()inthashCode()byte[]serialize()longunsafeNativeHandleWithoutGuard()booleanverifySignature(byte[] message, byte[] signature)
-
-
-
Field Detail
-
KEY_SIZE
public static final int KEY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromPublicKeyBytes
public static ECPublicKey fromPublicKeyBytes(byte[] key)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
verifySignature
public boolean verifySignature(byte[] message, byte[] signature)
-
serialize
public byte[] serialize()
-
getPublicKeyBytes
public byte[] getPublicKeyBytes()
-
getType
public int getType()
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(ECPublicKey another)
- Specified by:
compareToin interfacejava.lang.Comparable<ECPublicKey>
-
-