Search in sources :

Example 1 with ACLPermissionHandler

use of org.dcache.namespace.ACLPermissionHandler in project dcache by dCache.

the class ACLPermissionHandlerSecondTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    pdp = new ACLPermissionHandler();
    origin = new Origin("127.0.0.1");
    Principal user = new UidPrincipal(UID);
    Principal group = new GidPrincipal(GID, true);
    subject = new Subject();
    subject.getPrincipals().add(user);
    subject.getPrincipals().add(group);
    subject.getPrincipals().add(origin);
}
Also used : Origin(org.dcache.auth.Origin) UidPrincipal(org.dcache.auth.UidPrincipal) ACLPermissionHandler(org.dcache.namespace.ACLPermissionHandler) Principal(java.security.Principal) UidPrincipal(org.dcache.auth.UidPrincipal) GidPrincipal(org.dcache.auth.GidPrincipal) GidPrincipal(org.dcache.auth.GidPrincipal) Subject(javax.security.auth.Subject) BeforeClass(org.junit.BeforeClass)

Aggregations

Principal (java.security.Principal)1 Subject (javax.security.auth.Subject)1 GidPrincipal (org.dcache.auth.GidPrincipal)1 Origin (org.dcache.auth.Origin)1 UidPrincipal (org.dcache.auth.UidPrincipal)1 ACLPermissionHandler (org.dcache.namespace.ACLPermissionHandler)1 BeforeClass (org.junit.BeforeClass)1