< prev index next >

jdk/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/UcryptoProvider.java

Print this page




  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  *
  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.
  24  */
  25 
  26 package com.oracle.security.ucrypto;
  27 
  28 import java.io.IOException;
  29 import java.io.File;
  30 import java.util.*;
  31 import java.security.*;
  32 
  33 /**
  34  * OracleUcrypto provider main class.
  35  *
  36  * @since 1.9
  37  */
  38 public final class UcryptoProvider extends Provider {
  39 
  40     private static final long serialVersionUID = 351251234302833L;
  41 
  42     private static boolean DEBUG = false;
  43     private static HashMap<String, ServiceDesc> provProp = null;
  44     private static String defConfigName = "";
  45 
  46     static {
  47         try {
  48             // cannot use LoadLibraryAction because that would make the native
  49             // library available to the bootclassloader, but we run in the
  50             // extension classloader.
  51             String osname = System.getProperty("os.name");
  52             if (osname.startsWith("SunOS")) {
  53                 provProp = AccessController.doPrivileged
  54                     (new PrivilegedAction<HashMap<String, ServiceDesc>>() {
  55                         public HashMap<String, ServiceDesc> run() {
  56                             try {




  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  *
  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.
  24  */
  25 
  26 package com.oracle.security.ucrypto;
  27 
  28 import java.io.IOException;
  29 import java.io.File;
  30 import java.util.*;
  31 import java.security.*;
  32 
  33 /**
  34  * OracleUcrypto provider main class.
  35  *
  36  * @since 9
  37  */
  38 public final class UcryptoProvider extends Provider {
  39 
  40     private static final long serialVersionUID = 351251234302833L;
  41 
  42     private static boolean DEBUG = false;
  43     private static HashMap<String, ServiceDesc> provProp = null;
  44     private static String defConfigName = "";
  45 
  46     static {
  47         try {
  48             // cannot use LoadLibraryAction because that would make the native
  49             // library available to the bootclassloader, but we run in the
  50             // extension classloader.
  51             String osname = System.getProperty("os.name");
  52             if (osname.startsWith("SunOS")) {
  53                 provProp = AccessController.doPrivileged
  54                     (new PrivilegedAction<HashMap<String, ServiceDesc>>() {
  55                         public HashMap<String, ServiceDesc> run() {
  56                             try {


< prev index next >