@Test public void testCertificateMessageDoesNotContainRootCert() throws IOException, GeneralSecurityException { X509Certificate[] chain = DtlsTestTools.getServerCertificateChain(); assertThat(chain.length, is(greaterThan(1))); givenACertificateMessage(DtlsTestTools.getServerCertificateChain(), false); assertThatCertificateChainDoesNotContainRootCert(message.getCertificateChain()); }
public CertPath getCertificateChain() { return certPath; }
CertificateMessage extends HandshakeMessage { public CertPath getCertificateChain() { return certPath; } }
CertificateMessage extends HandshakeMessage { public CertPath getCertificateChain() { return certPath; } CertificateMessage(List<X509Certificate> certificateChain, InetSocketAddress peerAddress);  CertificateMessage(List<X509Certificate> certificateChain, List<X500Principal> certificateAuthorities,
			InetSocketAddress peerAddress); private  CertificateMessage(CertPath peerCertChain, InetSocketAddress peerAddress);  CertificateMessage(PublicKey publicKey, InetSocketAddress peerAddress);  CertificateMessage(byte[] rawPublicKeyBytes, InetSocketAddress peerAddress); }
CertificateMessage extends HandshakeMessage { public CertPath getCertificateChain() { return certPath; } CertificateMessage(List<X509Certificate> certificateChain, InetSocketAddress peerAddress);  CertificateMessage(List<X509Certificate> certificateChain, List<X500Principal> certificateAuthorities,
			InetSocketAddress peerAddress); private  CertificateMessage(CertPath peerCertChain, InetSocketAddress peerAddress);  CertificateMessage(PublicKey publicKey, InetSocketAddress peerAddress);  CertificateMessage(byte[] rawPublicKeyBytes, InetSocketAddress peerAddress); @Override HandshakeType getMessageType(); @Override int getMessageLength(); @Override String toString(); CertPath getCertificateChain(); boolean isEmpty(); @Override byte[] fragmentToByteArray(); static CertificateMessage fromReader(
			DatagramReader reader,
			CertificateType certificateType,
			InetSocketAddress peerAddress); PublicKey getPublicKey(); }
CertificateMessage extends HandshakeMessage { public CertPath getCertificateChain() { return certPath; } CertificateMessage(List<X509Certificate> certificateChain, InetSocketAddress peerAddress);  CertificateMessage(List<X509Certificate> certificateChain, List<X500Principal> certificateAuthorities,
			InetSocketAddress peerAddress); private  CertificateMessage(CertPath peerCertChain, InetSocketAddress peerAddress);  CertificateMessage(PublicKey publicKey, InetSocketAddress peerAddress);  CertificateMessage(byte[] rawPublicKeyBytes, InetSocketAddress peerAddress); @Override HandshakeType getMessageType(); @Override int getMessageLength(); @Override String toString(); CertPath getCertificateChain(); boolean isEmpty(); @Override byte[] fragmentToByteArray(); static CertificateMessage fromReader(
			DatagramReader reader,
			CertificateType certificateType,
			InetSocketAddress peerAddress); PublicKey getPublicKey();  }