Index: NTLM.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/Attic/NTLM.java,v retrieving revision 1.12 diff -u -r1.12 NTLM.java --- NTLM.java 11 Feb 2003 03:41:14 -0000 1.12 +++ NTLM.java 14 Aug 2003 14:59:47 -0000 @@ -66,7 +66,6 @@ import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; -import java.security.Security; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; @@ -110,31 +112,6 @@ /** Character encoding */ public static final String DEFAULT_CHARSET = "ASCII"; - //Initialize the security provider - static { - //TODO: do not use System properties - final String secProviderName - = System.getProperty("httpclient.security.provider", - "com.sun.crypto.provider.SunJCE"); - try { - java.security.Provider secProvider = (java.security.Provider) - Class.forName(secProviderName).newInstance(); - Security.addProvider(secProvider); - } catch (ClassNotFoundException e) { - LOG.error("Specified security provider " + secProviderName - + " could not be found by the class loader", e); - } catch (ClassCastException e) { - LOG.error("Specified security provider " + secProviderName - + " is not of type java.security.Provider", e); - } catch (InstantiationException e) { - LOG.error("Specified security provider " + secProviderName - + " could not be instantiated", e); - } catch (IllegalAccessException e) { - LOG.error("Specified security provider " + secProviderName - + " does not allow access to the constructor", e); - } - } - /** * Returns the response for the given message. *