Class ServerCertificate
- java.lang.Object
-
- org.signal.libsignal.metadata.certificate.ServerCertificate
-
- All Implemented Interfaces:
NativeHandleGuard.Owner
public class ServerCertificate extends java.lang.Object implements NativeHandleGuard.Owner
-
-
Constructor Summary
Constructors Constructor Description ServerCertificate(byte[] serialized)ServerCertificate(long unsafeHandle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()byte[]getCertificate()ECPublicKeygetKey()intgetKeyId()byte[]getSerialized()byte[]getSignature()longunsafeNativeHandleWithoutGuard()
-
-
-
Constructor Detail
-
ServerCertificate
public ServerCertificate(long unsafeHandle)
-
ServerCertificate
public ServerCertificate(byte[] serialized) throws InvalidCertificateException- Throws:
InvalidCertificateException
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
getKeyId
public int getKeyId()
-
getKey
public ECPublicKey getKey()
-
getSerialized
public byte[] getSerialized()
-
getCertificate
public byte[] getCertificate()
-
getSignature
public byte[] getSignature()
-
unsafeNativeHandleWithoutGuard
public long unsafeNativeHandleWithoutGuard()
- Specified by:
unsafeNativeHandleWithoutGuardin interfaceNativeHandleGuard.Owner
-
-