jdk/test/sun/security/pkcs11/KeyStore/Basic.policy
author ascarpino
Mon, 23 Jan 2017 11:49:01 -0800
changeset 43248 5e15de85a1a0
parent 37353 e8e684b89c81
permissions -rw-r--r--
8172527: Rename jdk.crypto.token to jdk.crypto.cryptoki Reviewed-by: mchung, wetmore

grant codebase "file:${user.dir}${/}loader.jar" {
    permission java.security.AllPermission;
};

grant {
    permission java.util.PropertyPermission "*", "read,write";
    permission java.lang.RuntimePermission "loadLibrary.*";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.*";
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission java.lang.RuntimePermission "setSecurityManager";
    permission java.security.SecurityPermission "putProviderProperty.*";

    permission java.io.FilePermission "<<ALL FILES>>", "read";
    permission java.security.SecurityPermission "setProperty.auth.login.defaultCallbackHandler";
    permission java.security.SecurityPermission "authProvider.SunPKCS11-ibutton";
    permission java.security.SecurityPermission "authProvider.SunPKCS11-activcard";
    permission java.security.SecurityPermission "authProvider.SunPKCS11-nss";
    permission java.security.SecurityPermission "authProvider.SunPKCS11-Solaris";
    permission java.security.SecurityPermission "authProvider.SunPKCS11-sca1000";

    // for 'module' test
    permission java.lang.RuntimePermission "accessClassInPackage.sun.*";
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "modifyPublicCredentials";
    permission javax.security.auth.AuthPermission "modifyPrivateCredentials";
    permission javax.security.auth.PrivateCredentialPermission "javax.security.auth.x500.X500PrivateCredential * \"*\"", "read";
};