| java.lang.Object sun.net.www.protocol.http.AuthenticationInfo sun.net.www.protocol.http.NTLMAuthentication
NTLMAuthentication | class NTLMAuthentication extends AuthenticationInfo (Code) | | NTLMAuthentication:
author: Michael McMahon |
NTLM_AUTH | static char NTLM_AUTH(Code) | | |
supported | static boolean supported(Code) | | |
NTLMAuthentication | public NTLMAuthentication(boolean isProxy, URL url, PasswordAuthentication pw)(Code) | | Create a NTLMAuthentication:
Username may be specified as domainusername in the application Authenticator.
If this notation is not used, then the domain will be taken
from a system property: "http.auth.ntlm.domain".
|
getHeaderName | String getHeaderName()(Code) | | the name of the HTTP header this authentication wants set |
getHeaderValue | String getHeaderValue(URL url, String method)(Code) | | Not supported. Must use the setHeaders() method
|
isAuthorizationStale | boolean isAuthorizationStale(String header)(Code) | | Check if the header indicates that the current auth. parameters are stale.
If so, then replace the relevant field with the new value
and return true. Otherwise return false.
returning true means the request can be retried with the same userid/password
returning false means we have to go back to the user to ask for a new
username password.
|
isSupported | static boolean isSupported()(Code) | | true if this NTLM supported on this platform |
setHeaders | synchronized boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw)(Code) | | Set header(s) on the given connection.
Parameters: conn - The connection to apply the header(s) to Parameters: p - A source of header values for this connection, not used becauseHeaderParser converts the fields to lower case, use raw instead Parameters: raw - The raw header field. true if all goes well, false if no headers were set. |
supportsPreemptiveAuthorization | boolean supportsPreemptiveAuthorization()(Code) | | true if this authentication supports preemptive authorization |
Methods inherited from sun.net.www.protocol.http.AuthenticationInfo | void addToCache()(Code)(Java Doc) String cacheKey(boolean includeRealm)(Code)(Java Doc) abstract void checkResponse(String header, String method, URL url) throws IOException(Code)(Java Doc) public Object clone()(Code)(Java Doc) void endAuthRequest()(Code)(Java Doc) static AuthenticationInfo getAuth(String key, URL url)(Code)(Java Doc) abstract String getHeaderName()(Code)(Java Doc) abstract String getHeaderValue(URL url, String method)(Code)(Java Doc) static AuthenticationInfo getProxyAuth(String host, int port)(Code)(Java Doc) static AuthenticationInfo getProxyAuth(String host, int port, String realm, char atype)(Code)(Java Doc) static AuthenticationInfo getServerAuth(URL url)(Code)(Java Doc) static AuthenticationInfo getServerAuth(URL url, String realm, char atype)(Code)(Java Doc) abstract boolean isAuthorizationStale(String header)(Code)(Java Doc) static void printCache()(Code)(Java Doc) static String reducePath(String urlPath)(Code)(Java Doc) void removeFromCache()(Code)(Java Doc) abstract boolean setHeaders(HttpURLConnection conn, HeaderParser p, String raw)(Code)(Java Doc) abstract boolean supportsPreemptiveAuthorization()(Code)(Java Doc)
|
|
|