AuthenticationNotSupportedException: DIGEST-MD5 on WebSphere
问题 I've run into a problem attempting to authenticate from within my web services. Here is the code that fails. private InitialDirContext callDirectory(String password, String usernameWithoutDomain) throws NamingException { InitialDirContext ctx; Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, _ldapUrl ); env.put(Context.SECURITY_AUTHENTICATION, "DIGEST-MD5"); env.put