Package org.apache.jackrabbit.oak.spi.security.authorization

Examples of org.apache.jackrabbit.oak.spi.security.authorization.AccessControlContext


        LoginContext loginContext = loginContextProvider.getLoginContext(credentials, workspaceName);
        loginContext.login();

        // TODO make configurable
        AccessControlContext acContext = new AccessControlContextImpl();

        return new ContentSessionImpl(loginContext, workspaceName, nodeStore, queryEngine, acContext);
    }
View Full Code Here


        Subject subject = Subject.getSubject(AccessController.getContext());
        if (subject != null) {
            principals = subject.getPrincipals();
        }

        AccessControlContext context = new AccessControlContextImpl();
        context.initialize(principals);

        NodeUtil rootBefore = new NodeUtil(new ReadOnlyTree(before));
        NodeUtil rootAfter = new NodeUtil(new ReadOnlyTree(after));
        return new PermissionValidator(context.getPermissions(), rootBefore, rootAfter);
    }
View Full Code Here

            purgePendingChanges();
        }
    }

    CompiledPermissions getPermissions() {
        AccessControlContext context = new AccessControlContextImpl();
        context.initialize(subject.getPrincipals());
        return context.getPermissions();
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.authorization.AccessControlContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.