78 static {
79 defaultDomain = java.security.AccessController.doPrivileged(
80 new sun.security.action.GetPropertyAction("http.auth.ntlm.domain", ""));
81 };
82
83 public static boolean supportsTransparentAuth () {
84 return false;
85 }
86
87 /**
88 * Returns true if the given site is trusted, i.e. we can try
89 * transparent Authentication.
90 */
91 public static boolean isTrustedSite(URL url) {
92 return NTLMAuthCallback.isTrustedSite(url);
93 }
94
95 private void init0() {
96
97 hostname = java.security.AccessController.doPrivileged(
98 new java.security.PrivilegedAction<String>() {
99 public String run() {
100 String localhost;
101 try {
102 localhost = InetAddress.getLocalHost().getHostName();
103 } catch (UnknownHostException e) {
104 localhost = "localhost";
105 }
106 return localhost;
107 }
108 });
109 };
110
111 PasswordAuthentication pw;
112
113 Client client;
114 /**
115 * Create a NTLMAuthentication:
116 * Username may be specified as domain<BACKSLASH>username in the application Authenticator.
117 * If this notation is not used, then the domain will be taken
118 * from a system property: "http.auth.ntlm.domain".
|
78 static {
79 defaultDomain = java.security.AccessController.doPrivileged(
80 new sun.security.action.GetPropertyAction("http.auth.ntlm.domain", ""));
81 };
82
83 public static boolean supportsTransparentAuth () {
84 return false;
85 }
86
87 /**
88 * Returns true if the given site is trusted, i.e. we can try
89 * transparent Authentication.
90 */
91 public static boolean isTrustedSite(URL url) {
92 return NTLMAuthCallback.isTrustedSite(url);
93 }
94
95 private void init0() {
96
97 hostname = java.security.AccessController.doPrivileged(
98 new java.security.PrivilegedAction<>() {
99 public String run() {
100 String localhost;
101 try {
102 localhost = InetAddress.getLocalHost().getHostName();
103 } catch (UnknownHostException e) {
104 localhost = "localhost";
105 }
106 return localhost;
107 }
108 });
109 };
110
111 PasswordAuthentication pw;
112
113 Client client;
114 /**
115 * Create a NTLMAuthentication:
116 * Username may be specified as domain<BACKSLASH>username in the application Authenticator.
117 * If this notation is not used, then the domain will be taken
118 * from a system property: "http.auth.ntlm.domain".
|