mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8209094: Improve web server connections
Reviewed-by: chegar, dfuchs, mschoene, igerasim
This commit is contained in:
parent
8f14f8b2a7
commit
ef75339a1e
6 changed files with 170 additions and 13 deletions
|
@ -33,8 +33,7 @@ import java.net.URL;
|
|||
* credentials without prompting) should only be tried with trusted sites.
|
||||
*/
|
||||
public abstract class NTLMAuthenticationCallback {
|
||||
private static volatile NTLMAuthenticationCallback callback =
|
||||
new DefaultNTLMAuthenticationCallback();
|
||||
private static volatile NTLMAuthenticationCallback callback;
|
||||
|
||||
public static void setNTLMAuthenticationCallback(
|
||||
NTLMAuthenticationCallback callback) {
|
||||
|
@ -50,10 +49,5 @@ public abstract class NTLMAuthenticationCallback {
|
|||
* transparent Authentication.
|
||||
*/
|
||||
public abstract boolean isTrustedSite(URL url);
|
||||
|
||||
static class DefaultNTLMAuthenticationCallback extends NTLMAuthenticationCallback {
|
||||
@Override
|
||||
public boolean isTrustedSite(URL url) { return true; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue