Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.AttributeValueType


        AttributeDesignatorType designator = AttributeDesignatorHelper.build(
                AttributeDesignatorType.ACTION_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME, attribute);
       
        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
        AttributeValueType policyAttributeValue = PolicyAttributeValueHelper.build(attributeDataType,
            CtxAttributeTypeHelper.getFirstValue(attribute));
       
        environmentMatch.setEnvironmentAttributeDesignator(designator);
        environmentMatch.setAttributeValue(policyAttributeValue);
        environmentMatch.setMatchId(matchFunctionId);
View Full Code Here


        return resultList;
    }
   
    public static AttributeType getAttribute(EnvironmentMatchType environmentMatch) {

        AttributeValueType policyAttributeValue = environmentMatch.getAttributeValue();
        String attributeId = environmentMatch.getEnvironmentAttributeDesignator().getAttributeId();
        return CtxAttributeTypeHelper.build(attributeId, policyAttributeValue.getDataType(),
                policyAttributeValue.getValue());
       
    }
View Full Code Here

        AttributeDesignatorType designator = AttributeDesignatorHelper.build(
                AttributeDesignatorType.ACTION_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME, attribute);
       
        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
        AttributeValueType policyAttributeValue = PolicyAttributeValueHelper.build(attributeDataType, CtxAttributeTypeHelper.getFirstValue(attribute));
       
        actionMatch.setActionAttributeDesignator(designator);
        actionMatch.setAttributeValue(policyAttributeValue);
        actionMatch.setMatchId(matchFunctionId);
       
View Full Code Here

        return resultList;
    }
   
    public static AttributeType getAttribute(ActionMatchType actionMatch) {

        AttributeValueType policyAttributeValue = actionMatch.getAttributeValue();
        String attributeId = actionMatch.getActionAttributeDesignator().getAttributeId();
        return CtxAttributeTypeHelper.build(attributeId, policyAttributeValue.getDataType(),
                policyAttributeValue.getValue());
       
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xacml.policy.AttributeValueType

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.