6819110: Lazily load Sun digest provider for jar verification
Lazily call Providers.getSunProvider() instead of at static initializer Reviewed-by: mullan
This commit is contained in:
parent
445c56f3ea
commit
1870624c08
@ -44,8 +44,6 @@ public class ManifestEntryVerifier {
|
||||
|
||||
private static final Debug debug = Debug.getInstance("jar");
|
||||
|
||||
private static final Provider digestProvider = Providers.getSunProvider();
|
||||
|
||||
/** the created digest objects */
|
||||
HashMap<String, MessageDigest> createdDigests;
|
||||
|
||||
@ -127,7 +125,7 @@ public class ManifestEntryVerifier {
|
||||
try {
|
||||
|
||||
digest = MessageDigest.getInstance
|
||||
(algorithm, digestProvider);
|
||||
(algorithm, Providers.getSunProvider());
|
||||
createdDigests.put(algorithm, digest);
|
||||
} catch (NoSuchAlgorithmException nsae) {
|
||||
// ignore
|
||||
|
Loading…
Reference in New Issue
Block a user