equal
deleted
inserted
replaced
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); |