jdk/src/share/classes/sun/security/ssl/SunJSSE.java
changeset 22121 b1aa108cccb5
parent 22068 95a7a3cd72a0
equal deleted inserted replaced
22120:3ec2fa1035de 22121:b1aa108cccb5
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2014, 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
   102         }
   102         }
   103     }
   103     }
   104 
   104 
   105     // standard constructor
   105     // standard constructor
   106     protected SunJSSE() {
   106     protected SunJSSE() {
   107         super("SunJSSE", 1.8d, info);
   107         super("SunJSSE", 1.9d, info);
   108         subclassCheck();
   108         subclassCheck();
   109         if (Boolean.TRUE.equals(fips)) {
   109         if (Boolean.TRUE.equals(fips)) {
   110             throw new ProviderException
   110             throw new ProviderException
   111                 ("SunJSSE is already initialized in FIPS mode");
   111                 ("SunJSSE is already initialized in FIPS mode");
   112         }
   112         }
   130         return t;
   130         return t;
   131     }
   131     }
   132 
   132 
   133     private SunJSSE(java.security.Provider cryptoProvider,
   133     private SunJSSE(java.security.Provider cryptoProvider,
   134             String providerName) {
   134             String providerName) {
   135         super("SunJSSE", 1.8d, fipsInfo + providerName + ")");
   135         super("SunJSSE", 1.9d, fipsInfo + providerName + ")");
   136         subclassCheck();
   136         subclassCheck();
   137         if (cryptoProvider == null) {
   137         if (cryptoProvider == null) {
   138             // Calling Security.getProvider() will cause other providers to be
   138             // Calling Security.getProvider() will cause other providers to be
   139             // loaded. That is not good but unavoidable here.
   139             // loaded. That is not good but unavoidable here.
   140             cryptoProvider = Security.getProvider(providerName);
   140             cryptoProvider = Security.getProvider(providerName);