equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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 |
110 } |
110 } |
111 } |
111 } |
112 |
112 |
113 try { |
113 try { |
114 return SSLContext.getDefault().getServerSocketFactory(); |
114 return SSLContext.getDefault().getServerSocketFactory(); |
115 } catch (NoSuchAlgorithmException e) { |
115 } catch (NoSuchAlgorithmException | UnsupportedOperationException e) { |
116 return new DefaultSSLServerSocketFactory(e); |
116 return new DefaultSSLServerSocketFactory(e); |
117 } |
117 } |
118 } |
118 } |
119 |
119 |
120 /** |
120 /** |