@Test public void testReceiveClientHelloAbortsOnUnknownServerCertificateType() throws Exception { List<byte[]> extensions = new LinkedList<>(); extensions.add(DtlsTestTools.newServerCertificateTypesExtension(0x05)); try { processClientHello(0, extensions); fail("Should have thrown " + HandshakeException.class.getSimpleName()); } catch(HandshakeException e) { assertThat(session.getCipherSuite(), is(CipherSuite.TLS_NULL_WITH_NULL_NULL)); assertThat(handshaker.getNegotiatedServerCertificateType(), is(nullValue())); } }
final CertificateType getNegotiatedServerCertificateType() { return selectedCipherSuiteParameters == null ? null : selectedCipherSuiteParameters.getSelectedServerCertificateType(); }
ServerHandshaker extends Handshaker { final CertificateType getNegotiatedServerCertificateType() { return selectedCipherSuiteParameters == null ? null : selectedCipherSuiteParameters.getSelectedServerCertificateType(); } }
ServerHandshaker extends Handshaker { final CertificateType getNegotiatedServerCertificateType() { return selectedCipherSuiteParameters == null ? null : selectedCipherSuiteParameters.getSelectedServerCertificateType(); } ServerHandshaker(int initialMessageSequenceNo, DTLSSession session, RecordLayer recordLayer,
			ScheduledExecutorService timer, Connection connection, DtlsConnectorConfig config); }
ServerHandshaker extends Handshaker { final CertificateType getNegotiatedServerCertificateType() { return selectedCipherSuiteParameters == null ? null : selectedCipherSuiteParameters.getSelectedServerCertificateType(); } ServerHandshaker(int initialMessageSequenceNo, DTLSSession session, RecordLayer recordLayer,
			ScheduledExecutorService timer, Connection connection, DtlsConnectorConfig config); PskPublicInformation getPreSharedKeyIdentity(); @Override void startHandshake(); @Override void destroy(); }
ServerHandshaker extends Handshaker { final CertificateType getNegotiatedServerCertificateType() { return selectedCipherSuiteParameters == null ? null : selectedCipherSuiteParameters.getSelectedServerCertificateType(); } ServerHandshaker(int initialMessageSequenceNo, DTLSSession session, RecordLayer recordLayer,
			ScheduledExecutorService timer, Connection connection, DtlsConnectorConfig config); PskPublicInformation getPreSharedKeyIdentity(); @Override void startHandshake(); @Override void destroy();  }