src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 * @since 1.6 |
43 * @since 1.6 |
44 */ |
44 */ |
45 |
45 |
46 class NegotiateAuthentication extends AuthenticationInfo { |
46 class NegotiateAuthentication extends AuthenticationInfo { |
47 |
47 |
|
48 @java.io.Serial |
48 private static final long serialVersionUID = 100L; |
49 private static final long serialVersionUID = 100L; |
49 private static final PlatformLogger logger = HttpURLConnection.getHttpLogger(); |
50 private static final PlatformLogger logger = HttpURLConnection.getHttpLogger(); |
50 |
51 |
|
52 @SuppressWarnings("serial") // Not statically typed as Serializable |
51 private final HttpCallerInfo hci; |
53 private final HttpCallerInfo hci; |
52 |
54 |
53 // These maps are used to manage the GSS availability for diffrent |
55 // These maps are used to manage the GSS availability for diffrent |
54 // hosts. The key for both maps is the host name. |
56 // hosts. The key for both maps is the host name. |
55 // <code>supported</code> is set when isSupported is checked, |
57 // <code>supported</code> is set when isSupported is checked, |
64 GetPropertyAction.privilegedGetProperty("jdk.spnego.cache", "true"); |
66 GetPropertyAction.privilegedGetProperty("jdk.spnego.cache", "true"); |
65 cacheSPNEGO = Boolean.parseBoolean(spnegoCacheProp); |
67 cacheSPNEGO = Boolean.parseBoolean(spnegoCacheProp); |
66 } |
68 } |
67 |
69 |
68 // The HTTP Negotiate Helper |
70 // The HTTP Negotiate Helper |
|
71 @SuppressWarnings("serial") // Not statically typed as Serializable |
69 private Negotiator negotiator = null; |
72 private Negotiator negotiator = null; |
70 |
73 |
71 /** |
74 /** |
72 * Constructor used for both WWW and proxy entries. |
75 * Constructor used for both WWW and proxy entries. |
73 * @param hci a schemed object. |
76 * @param hci a schemed object. |