SrpServerKeyExchangeHandler extends ServerKeyExchangeHandler<SrpServerKeyExchangeMessage> { @Override public SrpServerKeyExchangeParser getParser(byte[] message, int pointer) { return new SrpServerKeyExchangeParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } SrpServerKeyExchangeHandler(TlsContext tlsContext); @Override SrpServerKeyExchangeParser getParser(byte[] message, int pointer); @Override SrpServerKeyExchangePreparator getPreparator(SrpServerKeyExchangeMessage message); @Override SrpServerKeyExchangeSerializer getSerializer(SrpServerKeyExchangeMessage message); @Override void adjustTLSContext(SrpServerKeyExchangeMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof SrpServerKeyExchangeParser); }