/** * Creates SSL configuration for a server. * * @param serverKS String server keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @return Configuration for server SSL */ public static Configuration createServerSSLConfig(String serverKS, String password, String keyPassword, String trustKS) throws IOException { Configuration serverSSLConf = createSSLConfig(SSLFactory.Mode.SERVER, serverKS, password, keyPassword, trustKS); return serverSSLConf; }
/** * Creates SSL configuration for a client. * * @param clientKS String client keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @return Configuration for client SSL */ public static Configuration createClientSSLConfig(String clientKS, String password, String keyPassword, String trustKS) { return createSSLConfig(SSLFactory.Mode.CLIENT, clientKS, password, keyPassword, trustKS, ""); }
/** * Creates SSL configuration for a server. * * @param serverKS String server keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @param excludeCiphers String comma separated ciphers to exclude * @return * @throws IOException */ public static Configuration createServerSSLConfig(String serverKS, String password, String keyPassword, String trustKS, String excludeCiphers) throws IOException { return createSSLConfig(SSLFactory.Mode.SERVER, serverKS, password, keyPassword, trustKS, excludeCiphers); }
/** * Creates SSL configuration for a server. * * @param serverKS String server keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @return Configuration for server SSL * @throws java.io.IOException */ public static Configuration createServerSSLConfig(String serverKS, String password, String keyPassword, String trustKS) throws IOException { return createSSLConfig(SSLFactory.Mode.SERVER, serverKS, password, keyPassword, trustKS, ""); }
/** * Creates SSL configuration for a client. * * @param clientKS String client keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @param excludeCiphers String comma separated ciphers to exclude * @return Configuration for client SSL */ public static Configuration createClientSSLConfig(String clientKS, String password, String keyPassword, String trustKS, String excludeCiphers) { return createSSLConfig(SSLFactory.Mode.CLIENT, clientKS, password, keyPassword, trustKS, excludeCiphers); }
/** * Creates SSL configuration for a client. * * @param clientKS String client keystore file * @param password String store password, or null to avoid setting store * password * @param keyPassword String key password, or null to avoid setting key * password * @param trustKS String truststore file * @return Configuration for client SSL */ public static Configuration createClientSSLConfig(String clientKS, String password, String keyPassword, String trustKS) { Configuration clientSSLConf = createSSLConfig(SSLFactory.Mode.CLIENT, clientKS, password, keyPassword, trustKS); return clientSSLConf; }