view test/javax/security/auth/Subject/doAs/policy.expect.pae @ 11650:7969f7b6465e

8048147: Privilege tests with JAAS Subject.doAs Reviewed-by: weijun
author asmotrak
date Fri, 20 Mar 2015 16:01:59 +0800
parents
children
line wrap: on
line source
grant codeBase "file:NestedActionsPAE.jar" {
    permission java.security.AllPermission;
};

grant codeBase "file:WriteToFileExceptionAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
    permission java.security.AllPermission;
};

grant codeBase "file:ReadFromFileExceptionAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
    permission java.security.AllPermission;
};

// this code has limited permissions that should cause ACE
grant codeBase "file:ReadPropertyExceptionAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
    permission javax.security.auth.AuthPermission "getSubject";
};