Examples of indeterminate()


Examples of com.sun.xacml.cond.EvaluationResult.indeterminate()

                // see if the module can find an attribute value
                EvaluationResult result = module.findAttribute(attributeType, attributeId, issuer,
                        subjectCategory, context, designatorType);

                // if there was an error, we stop right away
                if (result.indeterminate()) {
                    if (logger.isLoggable(Level.INFO))
                        logger.info("Error while trying to resolve values: "
                                + result.getStatus().getMessage());
                    return result;
                }
View Full Code Here

Examples of com.sun.xacml.cond.EvaluationResult.indeterminate()

            // see if the module can find an attribute value
            EvaluationResult result = module.findAttribute(contextPath, namespaceNode,
                    attributeType, context, xpathVersion);

            // if there was an error, we stop right away
            if (result.indeterminate()) {
                if (logger.isLoggable(Level.INFO))
                    logger.info("Error while trying to resolve values: "
                            + result.getStatus().getMessage());
                return result;
            }
View Full Code Here

Examples of com.sun.xacml.cond.EvaluationResult.indeterminate()

            return new EvaluationResult(BagAttribute.createEmptyBag(attributeType));

        // retrieve the subject identifer from the context
        EvaluationResult result = context.getSubjectAttribute(attributeType, subjectIdentifier,
                issuer, subjectCategory);
        if (result.indeterminate())
            return result;

        // check that we succeeded in getting the subject identifier
        BagAttribute bag = (BagAttribute) (result.getAttributeValue());
        if (bag.isEmpty()) {
View Full Code Here

Examples of com.sun.xacml.finder.PolicyFinderResult.indeterminate()

        // see if there weren't any applicable policies
        if (finderResult.notApplicable())
            return new Result(Result.DECISION_NOT_APPLICABLE, context.getResourceId().encode());

        // see if there were any errors in trying to get a policy
        if (finderResult.indeterminate())
            return new Result(Result.DECISION_INDETERMINATE, finderResult.getStatus(), context
                    .getResourceId().encode());

        // we found a valid policy, so we can do the evaluation
        return finderResult.getPolicy().evaluate(context);
View Full Code Here

Examples of com.sun.xacml.finder.PolicyFinderResult.indeterminate()

                parentMetaData);

        if (pfr.notApplicable())
            throw new ProcessingException("couldn't resolve the policy");

        if (pfr.indeterminate())
            throw new ProcessingException("error resolving the policy");

        return pfr.getPolicy();
    }
View Full Code Here

Examples of com.sun.xacml.finder.PolicyFinderResult.indeterminate()

        // if we found nothing, then we return NotApplicable
        if (pfr.notApplicable())
            return new Result(Result.DECISION_NOT_APPLICABLE, context.getResourceId().encode());

        // if there was an error, we return that status data
        if (pfr.indeterminate())
            return new Result(Result.DECISION_INDETERMINATE, pfr.getStatus(), context
                    .getResourceId().encode());

        // we must have found a policy
        return pfr.getPolicy().evaluate(context);
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.EvaluationResult.indeterminate()

        // query the context
        EvaluationResult result = context.getAttribute(contextPath, policyRoot,
                                                       type, xpathVersion);

        // see if we got anything
        if (! result.indeterminate()) {
            BagAttribute bag = (BagAttribute)(result.getAttributeValue());

            // see if it's an empty bag
            if (bag.isEmpty()) {
                // see if this is an error or not
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.EvaluationResult.indeterminate()

     */
    public MatchResult match(EvaluationCtx context) {
        // start by evaluating the AD/AS
        EvaluationResult result = eval.evaluate(context);
       
        if (result.indeterminate()) {
            // in this case, we don't ask the function for anything, and we
            // simply return INDETERMINATE
            return new MatchResult(MatchResult.INDETERMINATE,
                                   result.getStatus());
        }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.EvaluationResult.indeterminate()

    private MatchResult evaluateMatch(List inputs, EvaluationCtx context) {
        // first off, evaluate the function
        EvaluationResult result = function.evaluate(inputs, context);

        // if it was indeterminate, then that's what we return immediately
        if (result.indeterminate())
            return new MatchResult(MatchResult.INDETERMINATE,
                                   result.getStatus());

        // otherwise, we figure out if it was a match
        BooleanAttribute bool = (BooleanAttribute)(result.getAttributeValue());
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.cond.EvaluationResult.indeterminate()

            return new Result(effectAttr, context.getResourceId().encode());

        // ...otherwise we evaluate the condition
        EvaluationResult result = condition.evaluate(context);
       
        if (result.indeterminate()) {
            // if it was INDETERMINATE, then that's what we return
            return new Result(Result.DECISION_INDETERMINATE,
                              result.getStatus(),
                              context.getResourceId().encode());
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.