| Modifier and Type | Field and Description |
|---|---|
| private CryptoPermissions | |
| private final URL | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | ProviderVerifier(URL
the JAR file to be verified. jarURL, boolean if savePerms)true, save the permissions allowed by the
exemption mechanismCreates a |
| pack-priv | ProviderVerifier(URL
the JAR file to be verified jarURL, Provider the corresponding provider. provider, boolean if savePerms)true, save the permissions allowed by the
exemption mechanismCreates a |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv CryptoPermissions | getPermissions()
Returns the permissions which are bundled with the JAR file, aka the "cryptoperms" file. |
| pack-priv static boolean | isTrustedCryptoProvider(Provider provider)
Returns |
| pack-priv void | verify()
Verify the JAR file is signed by an entity which has a certificate issued by a trusted CA. In OpenJDK, we just need to examine the "cryptoperms" file to see if any permissions were bundled together with this jar file. |
| pack-priv static void | verifyPolicySigned(Certificate[]
the list of certs to be checked. certs)Verify that the provided certs include the framework signing certificate. |
| appPerms | back to summary |
|---|---|
| private CryptoPermissions appPerms | |
| jarURL | back to summary |
|---|---|
| private final URL jarURL | |
| savePerms | back to summary |
|---|---|
| private final boolean savePerms | |
| ProviderVerifier | back to summary |
|---|---|
| pack-priv ProviderVerifier(URL jarURL, boolean savePerms) Creates a
| |
| ProviderVerifier | back to summary |
|---|---|
| pack-priv ProviderVerifier(URL jarURL, Provider provider, boolean savePerms) Creates a | |
| getPermissions | back to summary |
|---|---|
| pack-priv CryptoPermissions getPermissions() Returns the permissions which are bundled with the JAR file, aka the "cryptoperms" file. Note if this | |
| isTrustedCryptoProvider | back to summary |
|---|---|
| pack-priv static boolean isTrustedCryptoProvider(Provider provider) Returns | |
| verify | back to summary |
|---|---|
| pack-priv void verify() throws IOException Verify the JAR file is signed by an entity which has a certificate issued by a trusted CA. In OpenJDK, we just need to examine the "cryptoperms" file to see if any permissions were bundled together with this jar file. | |
| verifyPolicySigned | back to summary |
|---|---|
| pack-priv static void verifyPolicySigned(Certificate[] certs) throws Exception Verify that the provided certs include the framework signing certificate.
| |