jdk-24/jdk/test/sun/security/provider/PolicyFile/AliasExpansion.policy
Valerie Peng efa54ce543 8043406: Change default policy for JCE providers to run with as few privileges as possible
Provide default permissions for crypto providers

Reviewed-by: mullan, vinnie
2014-07-10 22:44:58 +00:00

23 lines
816 B
Plaintext

keystore "file:${test.src}/Alias.keystore";
grant {
permission javax.security.auth.PrivateCredentialPermission
"java.lang.String ${{alias:x509test person}}", "read";
permission java.security.SecurityPermission
"abcde ${{alias:x509test person}} fghij ${{alias:x509test person}}";
permission java.security.SecurityPermission
"${{alias:x509test person}}";
permission java.security.SecurityPermission
"${{alias:x509test person}} abc";
// these three are erroneous but should not cause the
// test to fail. they should simply cause notification output to be
// dumped to stderr.
permission java.security.SecurityPermission
"${{alias:notthere}}";
permission java.security.SecurityPermission
"${{unsupported}}";
permission java.security.SecurityPermission
"${{alias}}";
};