protected void writeSelectedCiphersuite() { appendBytes(msg.getSelectedCipherSuite().getValue()); LOGGER.debug("SelectedCipherSuite: " + ArrayConverter.bytesToHexString(msg.getSelectedCipherSuite().getValue())); } }
private void adjustSelectedCiphersuite(HelloRetryRequestMessage message) { CipherSuite suite = CipherSuite.getCipherSuite(message.getSelectedCipherSuite().getValue()); tlsContext.setSelectedCipherSuite(suite); if (suite != null) { LOGGER.debug("Set SelectedCipherSuite in Context to " + suite.name()); } else { LOGGER.warn("Could not determine selected CipherSuite. Not Adjusting Context"); } }
protected void parseSelectedCiphersuite(HelloRetryRequestMessage message) { message.setSelectedCipherSuite(parseByteArrayField(HandshakeByteLength.CIPHER_SUITE)); LOGGER.debug("CipherSuite:" + ArrayConverter.bytesToHexString(message.getSelectedCipherSuite().getValue())); }
private void prepareCipherSuite() { if (chooser.getConfig().isEnforceSettings()) { msg.setSelectedCipherSuite(chooser.getConfig().getDefaultSelectedCipherSuite().getByteValue()); } else { CipherSuite selectedSuite = null; for (CipherSuite suite : chooser.getConfig().getDefaultServerSupportedCiphersuites()) { if (chooser.getClientSupportedCiphersuites().contains(suite)) { selectedSuite = suite; break; } } if (selectedSuite == null) { throw new WorkflowExecutionException("No Ciphersuites in common"); } msg.setSelectedCipherSuite(selectedSuite.getByteValue()); } LOGGER.debug("SelectedCipherSuite: " + ArrayConverter.bytesToHexString(msg.getSelectedCipherSuite().getValue())); }