Package org.exist.security.xacml

Examples of org.exist.security.xacml.XACMLSource


        final long start = System.currentTimeMillis();
     
        final XQueryContext context = expression.getContext();
     
        //check access to the query
        final XACMLSource source = expression.getSource();
        try {
            final ExistPDP pdp = context.getPDP();
            if(pdp != null) {
                final RequestCtx request = pdp.getRequestHelper().createQueryRequest(context, source);
                pdp.evaluate(request);
            }
        } catch(final PermissionDeniedException pde) {
            throw new XPathException("Permission to execute query: " + source.createId() + " denied.", pde);
        }
   
        expression.reset();
        if(resetContext) {
            //context.setBroker(broker);
View Full Code Here


    // is not available.
    private void addErrModule(XPathException xpe) throws XPathException {
     
        String module = null ; // to be defined where to get
        if (xpe != null) {
            final XACMLSource src = xpe.getXACMLSource();
            if(src!=null){
                module=src.getKey();
            }
        }
       
        final QName q_module = new QName("module", Namespaces.W3C_XQUERY_XPATH_ERROR_NS, Namespaces.W3C_XQUERY_XPATH_ERROR_PREFIX);
        final LocalVariable err_module = new LocalVariable( q_module);
View Full Code Here

TOP

Related Classes of org.exist.security.xacml.XACMLSource

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.