/** * Create and initialize a new non-default instance of SocketCreator. * <p> * Synchronizes on the new instance. * * @param useSSL true if ssl is to be enabled * @param needClientAuth true if client authentication is required * @param protocols space-delimited list of ssl protocols to use * @param ciphers space-delimited list of ssl ciphers to use * @param sysProps vendor properties to be set as System properties */ public static SocketCreator createNonDefaultInstance(boolean useSSL, boolean needClientAuth, String protocols, String ciphers, Properties sysProps) { SocketCreator sc = new SocketCreator(); synchronized (sc) { sc.initialize(useSSL, needClientAuth, readArray(protocols), readArray(ciphers), sysProps); } return sc; }
/** * Create and initialize a new non-default instance of SocketCreator. * <p> * Synchronizes on the new instance. * * @param useSSL true if ssl is to be enabled * @param needClientAuth true if client authentication is required * @param protocols space-delimited list of ssl protocols to use * @param ciphers space-delimited list of ssl ciphers to use * @param sysProps vendor properties to be set as System properties */ public static SocketCreator createNonDefaultInstance(boolean useSSL, boolean needClientAuth, String protocols, String ciphers, Properties sysProps) { SocketCreator sc = new SocketCreator(); synchronized (sc) { sc.initialize(useSSL, needClientAuth, readArray(protocols), readArray(ciphers), sysProps); } return sc; }