src/java.base/share/classes/sun/security/jca/ProviderConfig.java
changeset 53972 43c2ab1bdfd3
parent 53018 8bf9268df0e2
equal deleted inserted replaced
53971:1019c97e1bde 53972:43c2ab1bdfd3
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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
   176             p = new sun.security.provider.Sun();
   176             p = new sun.security.provider.Sun();
   177         } else if (provName.equals("SunRsaSign") || provName.equals("sun.security.rsa.SunRsaSign")) {
   177         } else if (provName.equals("SunRsaSign") || provName.equals("sun.security.rsa.SunRsaSign")) {
   178             p = new sun.security.rsa.SunRsaSign();
   178             p = new sun.security.rsa.SunRsaSign();
   179         } else if (provName.equals("SunJCE") || provName.equals("com.sun.crypto.provider.SunJCE")) {
   179         } else if (provName.equals("SunJCE") || provName.equals("com.sun.crypto.provider.SunJCE")) {
   180             p = new com.sun.crypto.provider.SunJCE();
   180             p = new com.sun.crypto.provider.SunJCE();
   181         } else if (provName.equals("SunJSSE") || provName.equals("com.sun.net.ssl.internal.ssl.Provider")) {
   181         } else if (provName.equals("SunJSSE") ||
   182             p = new com.sun.net.ssl.internal.ssl.Provider();
   182                 provName.equals("com.sun.net.ssl.internal.ssl.Provider")) {
       
   183             // com.sun.net.ssl.internal.ssl.Provider is the legacy SunJSSE
       
   184             // provider implementation. For compatibility, let's continue to
       
   185             // support the legacy name for a while.
       
   186             p = new sun.security.ssl.SunJSSE();
   183         } else if (provName.equals("Apple") || provName.equals("apple.security.AppleProvider")) {
   187         } else if (provName.equals("Apple") || provName.equals("apple.security.AppleProvider")) {
   184             // need to use reflection since this class only exists on MacOsx
   188             // need to use reflection since this class only exists on MacOsx
   185             p = AccessController.doPrivileged(new PrivilegedAction<Provider>() {
   189             p = AccessController.doPrivileged(new PrivilegedAction<Provider>() {
   186                 public Provider run() {
   190                 public Provider run() {
   187                     try {
   191                     try {