- java.lang.Object
-
- net.luminis.tls.handshake.HandshakeMessage
-
- net.luminis.tls.handshake.CertificateMessage
-
public class CertificateMessage extends HandshakeMessage
-
-
Constructor Summary
Constructors Constructor Description CertificateMessage()CertificateMessage(byte[] requestContext, java.security.cert.X509Certificate certificate)CertificateMessage(java.security.cert.X509Certificate certificate)CertificateMessage(java.util.List<java.security.cert.X509Certificate> certificateChain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()java.util.List<java.security.cert.X509Certificate>getCertificateChain()java.security.cert.X509CertificategetEndEntityCertificate()byte[]getRequestContext()TlsConstants.HandshakeTypegetType()CertificateMessageparse(java.nio.ByteBuffer buffer)-
Methods inherited from class net.luminis.tls.handshake.HandshakeMessage
findPositionLastExtension, parseHandshakeHeader
-
-
-
-
Constructor Detail
-
CertificateMessage
public CertificateMessage(java.security.cert.X509Certificate certificate)
-
CertificateMessage
public CertificateMessage(java.util.List<java.security.cert.X509Certificate> certificateChain)
- Parameters:
certificateChain- The server certificate must be the first in the list
-
CertificateMessage
public CertificateMessage(byte[] requestContext, java.security.cert.X509Certificate certificate)
-
CertificateMessage
public CertificateMessage()
-
-
Method Detail
-
getType
public TlsConstants.HandshakeType getType()
- Specified by:
getTypein classHandshakeMessage
-
parse
public CertificateMessage parse(java.nio.ByteBuffer buffer) throws DecodeErrorException, BadCertificateAlert
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin classHandshakeMessage
-
getRequestContext
public byte[] getRequestContext()
-
getEndEntityCertificate
public java.security.cert.X509Certificate getEndEntityCertificate()
-
getCertificateChain
public java.util.List<java.security.cert.X509Certificate> getCertificateChain()
-
-