DHEServerKeyExchangeHandler extends ServerKeyExchangeHandler<DHEServerKeyExchangeMessage> { @Override public DHEServerKeyExchangeParser getParser(byte[] message, int pointer) { return new DHEServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), AlgorithmResolver.getKeyExchangeAlgorithm(tlsContext.getChooser().getSelectedCipherSuite()), tlsContext.getConfig()); } DHEServerKeyExchangeHandler(TlsContext tlsContext); @Override DHEServerKeyExchangeParser getParser(byte[] message, int pointer); @Override DHEServerKeyExchangePreparator getPreparator(DHEServerKeyExchangeMessage message); @Override DHEServerKeyExchangeSerializer getSerializer(DHEServerKeyExchangeMessage message); @Override void adjustTLSContext(DHEServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof DHEServerKeyExchangeParser); }