/** * @throws IllegalArgumentException if the value could not be parsed */ public static String[] getBannedCipherSuitesFromConfigurationValue(String value) { List<String> values = Lists.newArrayList(CIPHER_FLAG_SPLITTER.split(value)); CipherFlag[] flags = new CipherFlag[values.size()]; for (int i = 0; i < values.size(); i++) { flags[i] = CipherFlag.valueOf(values.get(i)); } return getBannedCipherSuites(flags); }
public CanlSslSocketCreator(Args args) throws IOException { this(new File(args.getOption(SERVICE_KEY)), new File(args.getOption(SERVICE_CERT)), new File(args.getOption(SERVICE_TRUSTED_CERTS)), Crypto.getBannedCipherSuitesFromConfigurationValue(args.getOption(CIPHER_FLAGS)), CrlCheckingMode.valueOf(args.getOption(CRL_MODE)), OCSPCheckingMode.valueOf(args.getOption(OCSP_MODE))); }
public CanlSslServerSocketCreator(Args args) throws IOException { this(new File(args.getOption(SERVICE_KEY)), new File(args.getOption(SERVICE_CERT)), new File(args.getOption(SERVICE_TRUSTED_CERTS)), Crypto.getBannedCipherSuitesFromConfigurationValue(args.getOption(CIPHER_FLAGS)), CrlCheckingMode.valueOf(args.getOption(CRL_MODE)), OCSPCheckingMode.valueOf(args.getOption(OCSP_MODE))); }
public ServerGsiEngineDssContextFactory(Args arguments) throws Exception { this(new File(arguments.getOption(SERVICE_KEY)), new File(arguments.getOption(SERVICE_CERT)), new File(arguments.getOption(SERVICE_TRUSTED_CERTS)), Crypto.getBannedCipherSuitesFromConfigurationValue(arguments.getOption(CIPHER_FLAGS)), NamespaceCheckingMode.valueOf(arguments.getOption(NAMESPACE_MODE)), CrlCheckingMode.valueOf(arguments.getOption(CRL_MODE)), OCSPCheckingMode.valueOf(arguments.getOption(OCSP_MODE)), arguments.getLongOption(KEY_CACHE_LIFETIME), TimeUnit.valueOf(arguments.getOption(KEY_CACHE_LIFETIME_UNIT))); }