jdk/src/java.base/share/classes/javax/crypto/JceSecurity.java
changeset 32649 2ee9017c7597
parent 30033 b9c86c17164a
child 36119 75308cd1bf2c
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    55     private static CryptoPermissions exemptPolicy = null;
    55     private static CryptoPermissions exemptPolicy = null;
    56 
    56 
    57     // Map<Provider,?> of the providers we already have verified
    57     // Map<Provider,?> of the providers we already have verified
    58     // value == PROVIDER_VERIFIED is successfully verified
    58     // value == PROVIDER_VERIFIED is successfully verified
    59     // value is failure cause Exception in error case
    59     // value is failure cause Exception in error case
    60     private final static Map<Provider, Object> verificationResults =
    60     private static final Map<Provider, Object> verificationResults =
    61             new IdentityHashMap<>();
    61             new IdentityHashMap<>();
    62 
    62 
    63     // Map<Provider,?> of the providers currently being verified
    63     // Map<Provider,?> of the providers currently being verified
    64     private final static Map<Provider, Object> verifyingProviders =
    64     private static final Map<Provider, Object> verifyingProviders =
    65             new IdentityHashMap<>();
    65             new IdentityHashMap<>();
    66 
    66 
    67     // Set the default value. May be changed in the static initializer.
    67     // Set the default value. May be changed in the static initializer.
    68     private static boolean isRestricted = true;
    68     private static boolean isRestricted = true;
    69 
    69 
   160         // supporting JAR files if there are any.
   160         // supporting JAR files if there are any.
   161         ProviderVerifier pv = new ProviderVerifier(codeBase, p, false);
   161         ProviderVerifier pv = new ProviderVerifier(codeBase, p, false);
   162         pv.verify();
   162         pv.verify();
   163     }
   163     }
   164 
   164 
   165     private final static Object PROVIDER_VERIFIED = Boolean.TRUE;
   165     private static final Object PROVIDER_VERIFIED = Boolean.TRUE;
   166 
   166 
   167     /*
   167     /*
   168      * Verify that the provider JAR files are signed properly, which
   168      * Verify that the provider JAR files are signed properly, which
   169      * means the signer's certificate can be traced back to a
   169      * means the signer's certificate can be traced back to a
   170      * JCE trusted CA.
   170      * JCE trusted CA.