| Modifier and Type | Field and Description |
|---|---|
| pack-priv Client | |
| private static final String | |
| private String | |
| private static final NTLMAuthenticationCallback | |
| private static final boolean | |
| pack-priv PasswordAuthentication |
| Access | Constructor and Description |
|---|---|
| public | NTLMAuthentication(boolean isProxy, URL url, PasswordAuthentication pw)
Create a NTLMAuthentication: Username may be specified as domain<BACKSLASH>username in the application Authenticator. |
| public | NTLMAuthentication(boolean isProxy, String host, int port, PasswordAuthentication pw)
Constructor used for proxy entries |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private String | |
| public String | getHeaderValue(URL url, String method)
Implements abstract sun. Not supported. |
| private void | |
| public boolean | isAuthorizationStale(String header)
Implements abstract sun. Check if the header indicates that the current auth. |
| public static boolean | isTrustedSite(URL url)
Returns true if the given site is trusted, i.e. we can try transparent Authentication. |
| public void | setHeaders(HttpURLConnection
The connection to apply the header(s) to conn, HeaderParser A source of header values for this connection, not used because
HeaderParser converts the fields to lower case, use raw instead p, String The raw header field. raw)Implements abstract sun. Set header(s) on the given connection. |
| public boolean | supportsPreemptiveAuthorization()
Implements abstract sun. Returns: true if this authentication supports preemptive authorization |
| public static boolean | |
| protected boolean | useAuthCache()
Overrides sun. Whether we should cache this instance in the AuthCache. |
| client | back to summary |
|---|---|
| pack-priv Client client | |
| defaultDomain | back to summary |
|---|---|
| private static final String defaultDomain | |
| hostname | back to summary |
|---|---|
| private String hostname | |
| NTLMAuthCallback | back to summary |
|---|---|
| private static final NTLMAuthenticationCallback NTLMAuthCallback | |
| ntlmCache | back to summary |
|---|---|
| private static final boolean ntlmCache | |
| pw | back to summary |
|---|---|
| pack-priv PasswordAuthentication pw | |
| NTLMAuthentication | back to summary |
|---|---|
| public NTLMAuthentication(boolean isProxy, URL url, PasswordAuthentication pw) Create a NTLMAuthentication: Username may be specified as domain<BACKSLASH>username in the application Authenticator. If this notation is not used, then the domain will be taken from a system property: "http.auth.ntlm.domain". | |
| NTLMAuthentication | back to summary |
|---|---|
| public NTLMAuthentication(boolean isProxy, String host, int port, PasswordAuthentication pw) Constructor used for proxy entries | |
| buildType1Msg | back to summary |
|---|---|
| private String buildType1Msg() | |
| buildType3Msg | back to summary |
|---|---|
| private String buildType3Msg(String challenge) throws GeneralSecurityException | |
| getHeaderValue | back to summary |
|---|---|
| public String getHeaderValue(URL url, String method) Implements abstract sun. Not supported. Must use the setHeaders() method
| |
| init | back to summary |
|---|---|
| private void init(PasswordAuthentication pw) | |
| isAuthorizationStale | back to summary |
|---|---|
| public boolean isAuthorizationStale(String header) Implements abstract sun. 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.
| |
| isTrustedSite | back to summary |
|---|---|
| public static boolean isTrustedSite(URL url) Returns true if the given site is trusted, i.e. we can try transparent Authentication. Shouldn't be called since capability not supported on Unix | |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(HttpURLConnection conn, HeaderParser p, String raw) throws IOException Implements abstract sun. Set header(s) on the given connection.
| |
| supportsPreemptiveAuthorization | back to summary |
|---|---|
| public boolean supportsPreemptiveAuthorization() Implements abstract sun.
| |
| supportsTransparentAuth | back to summary |
|---|---|
| public static boolean supportsTransparentAuth() | |
| useAuthCache | back to summary |
|---|---|
| protected boolean useAuthCache() Overrides sun. Doc from sun. Whether we should cache this instance in the AuthCache.
This method returns
| |