Package org.jboss.security.xacml.sunxacml.cond

Examples of org.jboss.security.xacml.sunxacml.cond.EvaluationResult


     */
    private EvaluationResult handleDate(URI type, URI issuer,
                                        EvaluationCtx context) {
        // make sure they're asking for a date attribute
        if (! type.toString().equals(DateAttribute.identifier))
            return new EvaluationResult(BagAttribute.
                                        createEmptyBag(type));

        // get the value from the context
        return makeBag(context.getCurrentDate());
    }
View Full Code Here


     */
    private EvaluationResult handleDateTime(URI type, URI issuer,
                                            EvaluationCtx context) {
        // make sure they're asking for a dateTime attribute
        if (! type.toString().equals(DateTimeAttribute.identifier))
            return new EvaluationResult(BagAttribute.
                                        createEmptyBag(type));

        // get the value from the context
        return makeBag(context.getCurrentDateTime());
    }
View Full Code Here

     * includes the given string.
     */
    private EvaluationResult makeProcessingError(String message) {
        ArrayList code = new ArrayList();
        code.add(Status.STATUS_PROCESSING_ERROR);
        return new EvaluationResult(new Status(code, message));
    }
View Full Code Here

        Set set = new HashSet();
        set.add(attribute);

        BagAttribute bag = new BagAttribute(attribute.getType(), set);

        return new EvaluationResult(bag);
    }
View Full Code Here

TOP

Related Classes of org.jboss.security.xacml.sunxacml.cond.EvaluationResult

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.