- java.lang.Object
-
- net.luminis.tls.handshake.HandshakeMessage
-
- net.luminis.tls.handshake.CertificateVerifyMessage
-
public class CertificateVerifyMessage extends HandshakeMessage
https://tools.ietf.org/html/rfc8446#section-4.4.3 "Certificate Verify This message is used to provide explicit proof that an endpoint possesses the private key corresponding to its certificate. The CertificateVerify message also provides integrity for the handshake up to this point. Servers MUST send this message when authenticating via a certificate. Clients MUST send this message whenever authenticating via a certificate (i.e., when the Certificate message is non-empty)."
-
-
Constructor Summary
Constructors Constructor Description CertificateVerifyMessage()CertificateVerifyMessage(TlsConstants.SignatureScheme signatureScheme, byte[] signature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()byte[]getSignature()TlsConstants.SignatureSchemegetSignatureScheme()TlsConstants.HandshakeTypegetType()CertificateVerifyMessageparse(java.nio.ByteBuffer buffer, int length)-
Methods inherited from class net.luminis.tls.handshake.HandshakeMessage
findPositionLastExtension, parseHandshakeHeader
-
-
-
-
Constructor Detail
-
CertificateVerifyMessage
public CertificateVerifyMessage(TlsConstants.SignatureScheme signatureScheme, byte[] signature)
-
CertificateVerifyMessage
public CertificateVerifyMessage()
-
-
Method Detail
-
getType
public TlsConstants.HandshakeType getType()
- Specified by:
getTypein classHandshakeMessage
-
parse
public CertificateVerifyMessage parse(java.nio.ByteBuffer buffer, int length) throws TlsProtocolException
- Throws:
TlsProtocolException
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin classHandshakeMessage
-
getSignatureScheme
public TlsConstants.SignatureScheme getSignatureScheme()
- Returns:
- the signature scheme or null if the message contained an unknown signature scheme value
-
getSignature
public byte[] getSignature()
-
-