| Modifier and Type | Field and Description |
|---|---|
| pack-priv static ThreadLocal | |
| private final HttpCallerInfo | |
| private static final ReentrantLock | |
| private Negotiator | |
| pack-priv static HashMap |
| Access | Constructor and Description |
|---|---|
| public | NegotiateAuthentication(HttpCallerInfo
a schemed object. hci)Constructor used for both WWW and proxy entries. |
| Modifier and Type | Method and Description |
|---|---|
| public void | disposeContext()
Overrides sun. Releases any system resources and cryptographic information stored in the context object and invalidates the context. |
| private byte[] | |
| private static HashMap | |
| public String | getHeaderValue(URL url, String method)
Implements abstract sun. Not supported. |
| public boolean | isAuthorizationStale(String header)
Implements abstract sun. Check if the header indicates that the current auth. |
| public static boolean | Returns: true if supportedFind out if the HttpCallerInfo supports Negotiate protocol. |
| private byte[] | Returns: the tokenthe token to be fed into token)negotiator.nextToken()return more tokens |
| 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 |
| protected boolean | useAuthCache()
Overrides sun. Whether we should cache this instance in the AuthCache. |
| cache | back to summary |
|---|---|
| pack-priv static ThreadLocal<HashMap<String, Negotiator>> cache | |
| hci | back to summary |
|---|---|
| private final HttpCallerInfo hci | |
| negotiateLock | back to summary |
|---|---|
| private static final ReentrantLock negotiateLock | |
| negotiator | back to summary |
|---|---|
| private Negotiator negotiator | |
| supported | back to summary |
|---|---|
| pack-priv static HashMap<String, Boolean> supported | |
| NegotiateAuthentication | back to summary |
|---|---|
| public NegotiateAuthentication(HttpCallerInfo hci) Constructor used for both WWW and proxy entries.
| |
| disposeContext | back to summary |
|---|---|
| public void disposeContext() Overrides sun. Releases any system resources and cryptographic information stored in the context object and invalidates the context.
| |
| firstToken | back to summary |
|---|---|
| private byte[] firstToken() throws IOException return the first token.
| |
| getCache | back to summary |
|---|---|
| private static HashMap | |
| getHeaderValue | back to summary |
|---|---|
| public String getHeaderValue(URL url, String method) Implements abstract sun. Not supported. Must use the setHeaders() method
| |
| 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.
| |
| isSupported | back to summary |
|---|---|
| public static boolean isSupported(HttpCallerInfo hci) Find out if the HttpCallerInfo supports Negotiate protocol. In order to
find out yes or no, an initialization of a Negotiator object against it
is tried. The generated object will be cached under the name of the
hostname at a success try.
| |
| nextToken | back to summary |
|---|---|
| private byte[] nextToken(byte[] token) throws IOException return more tokens
| |
| 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.
| |
| useAuthCache | back to summary |
|---|---|
| protected boolean useAuthCache() Overrides sun. Doc from sun. Whether we should cache this instance in the AuthCache.
This method returns
| |