author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 38865 | jdk/src/java.base/share/classes/sun/security/ssl/SSLServerSocketImpl.java@429c08bd6158 |
child 50768 | 68fa3d4026ea |
child 56542 | 56aaa6cb3693 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
38865
429c08bd6158
8158978: ALPN not working when values are set directly on a SSLServerSocket
wetmore
parents:
34380
diff
changeset
|
2 |
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
||
27 |
package sun.security.ssl; |
|
28 |
||
29 |
import java.io.IOException; |
|
30 |
import java.net.InetAddress; |
|
31 |
import java.net.Socket; |
|
32 |
||
7043 | 33 |
import java.security.AlgorithmConstraints; |
34 |
||
2 | 35 |
import java.util.*; |
36 |
||
37 |
import javax.net.ssl.SSLException; |
|
38 |
import javax.net.ssl.SSLServerSocket; |
|
7043 | 39 |
import javax.net.ssl.SSLParameters; |
14194
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
40 |
import javax.net.ssl.SNIMatcher; |
2 | 41 |
|
42 |
||
43 |
/** |
|
44 |
* This class provides a simple way for servers to support conventional |
|
45 |
* use of the Secure Sockets Layer (SSL). Application code uses an |
|
46 |
* SSLServerSocketImpl exactly like it uses a regular TCP ServerSocket; the |
|
47 |
* difference is that the connections established are secured using SSL. |
|
48 |
* |
|
49 |
* <P> Also, the constructors take an explicit authentication context |
|
50 |
* parameter, giving flexibility with respect to how the server socket |
|
51 |
* authenticates itself. That policy flexibility is not exposed through |
|
52 |
* the standard SSLServerSocketFactory API. |
|
53 |
* |
|
54 |
* <P> System security defaults prevent server sockets from accepting |
|
55 |
* connections if they the authentication context has not been given |
|
56 |
* a certificate chain and its matching private key. If the clients |
|
57 |
* of your application support "anonymous" cipher suites, you may be |
|
58 |
* able to configure a server socket to accept those suites. |
|
59 |
* |
|
60 |
* @see SSLSocketImpl |
|
61 |
* @see SSLServerSocketFactoryImpl |
|
62 |
* |
|
63 |
* @author David Brownell |
|
64 |
*/ |
|
65 |
final |
|
66 |
class SSLServerSocketImpl extends SSLServerSocket |
|
67 |
{ |
|
68 |
private SSLContextImpl sslContext; |
|
69 |
||
70 |
/* Do newly accepted connections require clients to authenticate? */ |
|
30904 | 71 |
private ClientAuthType clientAuthType = ClientAuthType.CLIENT_AUTH_NONE; |
2 | 72 |
|
73 |
/* Do new connections created here use the "server" mode of SSL? */ |
|
74 |
private boolean useServerMode = true; |
|
75 |
||
76 |
/* Can new connections created establish new sessions? */ |
|
77 |
private boolean enableSessionCreation = true; |
|
78 |
||
79 |
/* what cipher suites to use by default */ |
|
80 |
private CipherSuiteList enabledCipherSuites = null; |
|
81 |
||
82 |
/* which protocol to use by default */ |
|
83 |
private ProtocolList enabledProtocols = null; |
|
84 |
||
7043 | 85 |
// the endpoint identification protocol to use by default |
86 |
private String identificationProtocol = null; |
|
87 |
||
88 |
// The cryptographic algorithm constraints |
|
89 |
private AlgorithmConstraints algorithmConstraints = null; |
|
90 |
||
14194
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
91 |
// The server name indication |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
92 |
Collection<SNIMatcher> sniMatchers = |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
93 |
Collections.<SNIMatcher>emptyList(); |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
94 |
|
34380
2b2609379881
8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension
vinnie
parents:
32649
diff
changeset
|
95 |
// Configured application protocol values |
2b2609379881
8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension
vinnie
parents:
32649
diff
changeset
|
96 |
String[] applicationProtocols = new String[0]; |
2b2609379881
8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension
vinnie
parents:
32649
diff
changeset
|
97 |
|
19823
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
98 |
/* |
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
99 |
* Whether local cipher suites preference in server side should be |
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
100 |
* honored during handshaking? |
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
101 |
*/ |
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
102 |
private boolean preferLocalCipherSuites = false; |
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
103 |
|
2 | 104 |
/** |
105 |
* Create an SSL server socket on a port, using a non-default |
|
106 |
* authentication context and a specified connection backlog. |
|
107 |
* |
|
108 |
* @param port the port on which to listen |
|
109 |
* @param backlog how many connections may be pending before |
|
110 |
* the system should start rejecting new requests |
|
111 |
* @param context authentication context for this server |
|
112 |
*/ |
|
113 |
SSLServerSocketImpl(int port, int backlog, SSLContextImpl context) |
|
114 |
throws IOException, SSLException |
|
115 |
{ |
|
116 |
super(port, backlog); |
|
117 |
initServer(context); |
|
118 |
} |
|
119 |
||
120 |
||
121 |
/** |
|
122 |
* Create an SSL server socket on a port, using a specified |
|
123 |
* authentication context and a specified backlog of connections |
|
124 |
* as well as a particular specified network interface. This |
|
125 |
* constructor is used on multihomed hosts, such as those used |
|
126 |
* for firewalls or as routers, to control through which interface |
|
127 |
* a network service is provided. |
|
128 |
* |
|
129 |
* @param port the port on which to listen |
|
130 |
* @param backlog how many connections may be pending before |
|
131 |
* the system should start rejecting new requests |
|
132 |
* @param address the address of the network interface through |
|
133 |
* which connections will be accepted |
|
134 |
* @param context authentication context for this server |
|
135 |
*/ |
|
136 |
SSLServerSocketImpl( |
|
137 |
int port, |
|
138 |
int backlog, |
|
139 |
InetAddress address, |
|
140 |
SSLContextImpl context) |
|
141 |
throws IOException |
|
142 |
{ |
|
143 |
super(port, backlog, address); |
|
144 |
initServer(context); |
|
145 |
} |
|
146 |
||
147 |
||
148 |
/** |
|
149 |
* Creates an unbound server socket. |
|
150 |
*/ |
|
151 |
SSLServerSocketImpl(SSLContextImpl context) throws IOException { |
|
152 |
super(); |
|
153 |
initServer(context); |
|
154 |
} |
|
155 |
||
156 |
||
157 |
/** |
|
158 |
* Initializes the server socket. |
|
159 |
*/ |
|
160 |
private void initServer(SSLContextImpl context) throws SSLException { |
|
161 |
if (context == null) { |
|
162 |
throw new SSLException("No Authentication context given"); |
|
163 |
} |
|
164 |
sslContext = context; |
|
9246
c459f79af46b
6976117: SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets without TLSv1.1 enabled
xuelei
parents:
7043
diff
changeset
|
165 |
enabledCipherSuites = sslContext.getDefaultCipherSuiteList(true); |
c459f79af46b
6976117: SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets without TLSv1.1 enabled
xuelei
parents:
7043
diff
changeset
|
166 |
enabledProtocols = sslContext.getDefaultProtocolList(true); |
2 | 167 |
} |
168 |
||
169 |
/** |
|
170 |
* Returns the names of the cipher suites which could be enabled for use |
|
171 |
* on an SSL connection. Normally, only a subset of these will actually |
|
172 |
* be enabled by default, since this list may include cipher suites which |
|
173 |
* do not support the mutual authentication of servers and clients, or |
|
174 |
* which do not protect data confidentiality. Servers may also need |
|
175 |
* certain kinds of certificates to use certain cipher suites. |
|
176 |
* |
|
177 |
* @return an array of cipher suite names |
|
178 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
179 |
@Override |
2 | 180 |
public String[] getSupportedCipherSuites() { |
13815 | 181 |
return sslContext.getSupportedCipherSuiteList().toStringArray(); |
2 | 182 |
} |
183 |
||
184 |
/** |
|
185 |
* Returns the list of cipher suites which are currently enabled |
|
186 |
* for use by newly accepted connections. A null return indicates |
|
187 |
* that the system defaults are in effect. |
|
188 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
189 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
190 |
public synchronized String[] getEnabledCipherSuites() { |
2 | 191 |
return enabledCipherSuites.toStringArray(); |
192 |
} |
|
193 |
||
194 |
/** |
|
195 |
* Controls which particular SSL cipher suites are enabled for use |
|
196 |
* by accepted connections. |
|
197 |
* |
|
198 |
* @param suites Names of all the cipher suites to enable; null |
|
199 |
* means to accept system defaults. |
|
200 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
201 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
202 |
public synchronized void setEnabledCipherSuites(String[] suites) { |
2 | 203 |
enabledCipherSuites = new CipherSuiteList(suites); |
204 |
} |
|
205 |
||
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
206 |
@Override |
2 | 207 |
public String[] getSupportedProtocols() { |
9246
c459f79af46b
6976117: SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets without TLSv1.1 enabled
xuelei
parents:
7043
diff
changeset
|
208 |
return sslContext.getSuportedProtocolList().toStringArray(); |
2 | 209 |
} |
210 |
||
211 |
/** |
|
212 |
* Controls which protocols are enabled for use. |
|
213 |
* The protocols must have been listed by |
|
214 |
* getSupportedProtocols() as being supported. |
|
215 |
* |
|
216 |
* @param protocols protocols to enable. |
|
217 |
* @exception IllegalArgumentException when one of the protocols |
|
218 |
* named by the parameter is not supported. |
|
219 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
220 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
221 |
public synchronized void setEnabledProtocols(String[] protocols) { |
2 | 222 |
enabledProtocols = new ProtocolList(protocols); |
223 |
} |
|
224 |
||
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
225 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
226 |
public synchronized String[] getEnabledProtocols() { |
2 | 227 |
return enabledProtocols.toStringArray(); |
228 |
} |
|
229 |
||
230 |
/** |
|
231 |
* Controls whether the connections which are accepted must include |
|
232 |
* client authentication. |
|
233 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
234 |
@Override |
2 | 235 |
public void setNeedClientAuth(boolean flag) { |
30904 | 236 |
clientAuthType = (flag ? ClientAuthType.CLIENT_AUTH_REQUIRED : |
237 |
ClientAuthType.CLIENT_AUTH_NONE); |
|
2 | 238 |
} |
239 |
||
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
240 |
@Override |
2 | 241 |
public boolean getNeedClientAuth() { |
30904 | 242 |
return (clientAuthType == ClientAuthType.CLIENT_AUTH_REQUIRED); |
2 | 243 |
} |
244 |
||
245 |
/** |
|
246 |
* Controls whether the connections which are accepted should request |
|
247 |
* client authentication. |
|
248 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
249 |
@Override |
2 | 250 |
public void setWantClientAuth(boolean flag) { |
30904 | 251 |
clientAuthType = (flag ? ClientAuthType.CLIENT_AUTH_REQUESTED : |
252 |
ClientAuthType.CLIENT_AUTH_NONE); |
|
2 | 253 |
} |
254 |
||
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
255 |
@Override |
2 | 256 |
public boolean getWantClientAuth() { |
30904 | 257 |
return (clientAuthType == ClientAuthType.CLIENT_AUTH_REQUESTED); |
2 | 258 |
} |
259 |
||
260 |
/** |
|
261 |
* Makes the returned sockets act in SSL "client" mode, not the usual |
|
262 |
* server mode. The canonical example of why this is needed is for |
|
263 |
* FTP clients, which accept connections from servers and should be |
|
264 |
* rejoining the already-negotiated SSL connection. |
|
265 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
266 |
@Override |
2 | 267 |
public void setUseClientMode(boolean flag) { |
7039 | 268 |
/* |
269 |
* If we need to change the socket mode and the enabled |
|
270 |
* protocols haven't specifically been set by the user, |
|
271 |
* change them to the corresponding default ones. |
|
272 |
*/ |
|
273 |
if (useServerMode != (!flag) && |
|
9246
c459f79af46b
6976117: SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets without TLSv1.1 enabled
xuelei
parents:
7043
diff
changeset
|
274 |
sslContext.isDefaultProtocolList(enabledProtocols)) { |
c459f79af46b
6976117: SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets without TLSv1.1 enabled
xuelei
parents:
7043
diff
changeset
|
275 |
enabledProtocols = sslContext.getDefaultProtocolList(!flag); |
7039 | 276 |
} |
277 |
||
2 | 278 |
useServerMode = !flag; |
279 |
} |
|
280 |
||
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
281 |
@Override |
2 | 282 |
public boolean getUseClientMode() { |
283 |
return !useServerMode; |
|
284 |
} |
|
285 |
||
286 |
||
287 |
/** |
|
288 |
* Controls whether new connections may cause creation of new SSL |
|
289 |
* sessions. |
|
290 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
291 |
@Override |
2 | 292 |
public void setEnableSessionCreation(boolean flag) { |
293 |
enableSessionCreation = flag; |
|
294 |
} |
|
295 |
||
296 |
/** |
|
297 |
* Returns true if new connections may cause creation of new SSL |
|
298 |
* sessions. |
|
299 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
300 |
@Override |
2 | 301 |
public boolean getEnableSessionCreation() { |
302 |
return enableSessionCreation; |
|
303 |
} |
|
304 |
||
305 |
/** |
|
7043 | 306 |
* Returns the SSLParameters in effect for newly accepted connections. |
307 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
308 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
309 |
public synchronized SSLParameters getSSLParameters() { |
7043 | 310 |
SSLParameters params = super.getSSLParameters(); |
311 |
||
312 |
// the super implementation does not handle the following parameters |
|
313 |
params.setEndpointIdentificationAlgorithm(identificationProtocol); |
|
314 |
params.setAlgorithmConstraints(algorithmConstraints); |
|
14194
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
315 |
params.setSNIMatchers(sniMatchers); |
19823
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
316 |
params.setUseCipherSuitesOrder(preferLocalCipherSuites); |
34380
2b2609379881
8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension
vinnie
parents:
32649
diff
changeset
|
317 |
params.setApplicationProtocols(applicationProtocols); |
7043 | 318 |
|
319 |
return params; |
|
320 |
} |
|
321 |
||
322 |
/** |
|
323 |
* Applies SSLParameters to newly accepted connections. |
|
324 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
325 |
@Override |
32649
2ee9017c7597
8136583: Core libraries should use blessed modifier order
martin
parents:
30904
diff
changeset
|
326 |
public synchronized void setSSLParameters(SSLParameters params) { |
7043 | 327 |
super.setSSLParameters(params); |
328 |
||
329 |
// the super implementation does not handle the following parameters |
|
330 |
identificationProtocol = params.getEndpointIdentificationAlgorithm(); |
|
331 |
algorithmConstraints = params.getAlgorithmConstraints(); |
|
19823
f0fd09e20528
7188657: There should be a way to reorder the JSSE ciphers
xuelei
parents:
14665
diff
changeset
|
332 |
preferLocalCipherSuites = params.getUseCipherSuitesOrder(); |
14194
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
333 |
Collection<SNIMatcher> matchers = params.getSNIMatchers(); |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
334 |
if (matchers != null) { |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
335 |
sniMatchers = params.getSNIMatchers(); |
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
336 |
} |
34380
2b2609379881
8144093: JEP 244/8051498 - TLS Application-Layer Protocol Negotiation Extension
vinnie
parents:
32649
diff
changeset
|
337 |
applicationProtocols = params.getApplicationProtocols(); |
7043 | 338 |
} |
339 |
||
340 |
/** |
|
2 | 341 |
* Accept a new SSL connection. This server identifies itself with |
342 |
* information provided in the authentication context which was |
|
343 |
* presented during construction. |
|
344 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
345 |
@Override |
2 | 346 |
public Socket accept() throws IOException { |
347 |
SSLSocketImpl s = new SSLSocketImpl(sslContext, useServerMode, |
|
30904 | 348 |
enabledCipherSuites, clientAuthType, enableSessionCreation, |
14194
971f46db533d
7068321: Support TLS Server Name Indication (SNI) Extension in JSSE Server
xuelei
parents:
13815
diff
changeset
|
349 |
enabledProtocols, identificationProtocol, algorithmConstraints, |
38865
429c08bd6158
8158978: ALPN not working when values are set directly on a SSLServerSocket
wetmore
parents:
34380
diff
changeset
|
350 |
sniMatchers, preferLocalCipherSuites, applicationProtocols); |
2 | 351 |
|
352 |
implAccept(s); |
|
353 |
s.doneConnect(); |
|
354 |
return s; |
|
355 |
} |
|
356 |
||
357 |
/** |
|
358 |
* Provides a brief description of this SSL socket. |
|
359 |
*/ |
|
14664
e71aa0962e70
8003950: Adds missing Override annotations and removes unnecessary imports in sun.security.ssl
xuelei
parents:
14194
diff
changeset
|
360 |
@Override |
2 | 361 |
public String toString() { |
362 |
return "[SSL: "+ super.toString() + "]"; |
|
363 |
} |
|
364 |
} |