public boolean isImplemented() { return getImplemented().contains(this); }
private List<CipherSuite> getCbcCiphers() { List<CipherSuite> cbcs = new LinkedList<>(); for (CipherSuite suite : CipherSuite.getImplemented()) { if (suite.isCBC()) { cbcs.add(suite); } } return cbcs; }
public static List<CipherSuite> getNotImplemented() { List<CipherSuite> notImplemented = new LinkedList<>(); for (CipherSuite suite : values()) { if (!getImplemented().contains(suite)) { notImplemented.add(suite); } } return notImplemented; }
public String getListing() { if (listDelegateType == null) { throw new ConfigurationException("Nothing to plot"); } String list = null; switch (listDelegateType) { case ciphers: list = StringUtils.join(CipherSuite.getImplemented(), '\n'); break; case filters: list = StringUtils.join(EnumSet.allOf(FilterType.class), '\n'); break; case groups: list = StringUtils.join(EnumSet.allOf(NamedGroup.class), '\n'); break; case sign_hash_algos: list = StringUtils.join(SignatureAndHashAlgorithm.values(), '\n'); break; case workflow_trace_types: list = StringUtils.join(EnumSet.allOf(WorkflowTraceType.class), '\n'); } return list; }
defaultServerSupportedCompressionMethods.add(CompressionMethod.NULL); defaultClientSupportedCiphersuites = new LinkedList<>(); defaultClientSupportedCiphersuites.addAll(CipherSuite.getImplemented()); defaultServerSupportedCiphersuites = new LinkedList<>(); defaultServerSupportedCiphersuites.addAll(CipherSuite.getImplemented()); defaultClientNamedGroups = new LinkedList<>(); defaultClientNamedGroups.add(NamedGroup.SECP192R1);
List<CipherSuite> ciphers = new LinkedList<>(); if (tlsConfig.getDefaultClientSupportedCiphersuites().isEmpty()) { for (CipherSuite cs : CipherSuite.getImplemented()) { if (cs.isCBC()) { ciphers.add(cs);
/** * * @return */ @Override public Config createConfig() { Config config = super.createConfig(); if (ciphersuiteDelegate.getCipherSuites() == null) { List<CipherSuite> cipherSuiteList = new LinkedList<>(); for (CipherSuite cipherSuite : CipherSuite.getImplemented()) { if (cipherSuite.isPsk()) { cipherSuiteList.add(cipherSuite); } } config.setDefaultClientSupportedCiphersuites(cipherSuiteList); } config.setQuickReceive(true); config.setEarlyStop(true); config.setStopActionsAfterFatal(true); return config; }
/** * * @return */ @Override public Config createConfig() { Config config = super.createConfig(); if (ciphersuiteDelegate.getCipherSuites() == null) { List<CipherSuite> cipherSuites = new LinkedList<>(); for (CipherSuite suite : CipherSuite.getImplemented()) { if (AlgorithmResolver.getKeyExchangeAlgorithm(suite) == KeyExchangeAlgorithm.RSA || AlgorithmResolver.getKeyExchangeAlgorithm(suite) == KeyExchangeAlgorithm.PSK_RSA) { cipherSuites.add(suite); } } config.setDefaultClientSupportedCiphersuites(cipherSuites); } config.setQuickReceive(true); config.setEarlyStop(true); config.setAddRenegotiationInfoExtension(true); config.setAddServerNameIndicationExtension(true); config.setAddSignatureAndHashAlgorithmsExtension(true); config.setStopActionsAfterFatal(true); config.setAddECPointFormatExtension(false); config.setAddEllipticCurveExtension(false); config.setWorkflowExecutorShouldClose(false); return config; }
if (cipherSuiteDelegate.getCipherSuites() == null) { List<CipherSuite> cipherSuites = new LinkedList<>(); for (CipherSuite suite : CipherSuite.getImplemented()) { if (suite.isCBC() && !suite.isPsk() && !suite.isSrp()) { cipherSuites.add(suite);
trace.addConnection(outboundConnection); List<CipherSuite> removeCiphers = CipherSuite.getImplemented(); removeCiphers.addAll(CipherSuite.getNotImplemented()); List<CipherSuite> keepCiphers = new ArrayList();