equal
deleted
inserted
replaced
25 |
25 |
26 |
26 |
27 package sun.security.ssl; |
27 package sun.security.ssl; |
28 |
28 |
29 import java.security.*; |
29 import java.security.*; |
|
30 import static sun.security.util.SecurityConstants.PROVIDER_VER; |
30 |
31 |
31 /** |
32 /** |
32 * The JSSE provider. |
33 * The JSSE provider. |
33 * |
34 * |
34 * The RSA implementation has been removed from JSSE, but we still need to |
35 * The RSA implementation has been removed from JSSE, but we still need to |
102 } |
103 } |
103 } |
104 } |
104 |
105 |
105 // standard constructor |
106 // standard constructor |
106 protected SunJSSE() { |
107 protected SunJSSE() { |
107 super("SunJSSE", 9.0d, info); |
108 super("SunJSSE", PROVIDER_VER, info); |
108 subclassCheck(); |
109 subclassCheck(); |
109 if (Boolean.TRUE.equals(fips)) { |
110 if (Boolean.TRUE.equals(fips)) { |
110 throw new ProviderException |
111 throw new ProviderException |
111 ("SunJSSE is already initialized in FIPS mode"); |
112 ("SunJSSE is already initialized in FIPS mode"); |
112 } |
113 } |
130 return t; |
131 return t; |
131 } |
132 } |
132 |
133 |
133 private SunJSSE(java.security.Provider cryptoProvider, |
134 private SunJSSE(java.security.Provider cryptoProvider, |
134 String providerName) { |
135 String providerName) { |
135 super("SunJSSE", 9.0d, fipsInfo + providerName + ")"); |
136 super("SunJSSE", PROVIDER_VER, fipsInfo + providerName + ")"); |
136 subclassCheck(); |
137 subclassCheck(); |
137 if (cryptoProvider == null) { |
138 if (cryptoProvider == null) { |
138 // Calling Security.getProvider() will cause other providers to be |
139 // Calling Security.getProvider() will cause other providers to be |
139 // loaded. That is not good but unavoidable here. |
140 // loaded. That is not good but unavoidable here. |
140 cryptoProvider = Security.getProvider(providerName); |
141 cryptoProvider = Security.getProvider(providerName); |