src/java.base/share/classes/javax/net/ssl/SSLServerSocketFactory.java
changeset 51771 1f805481d8de
parent 47216 71c04702a3d5
child 54443 dfba4e321ab3
equal deleted inserted replaced
51770:b19734760ed3 51771:1f805481d8de
     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     /**