Examples of AttributeValueType


Examples of org.opensaml.xacml.policy.AttributeValueType

        AttributeDesignatorType designator = AttributeDesignatorHelper.build(
                AttributeDesignatorType.RESOURCE_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME, attribute);

        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
        AttributeValueType policyAttributeValue = PolicyAttributeValueHelper.build(attributeDataType,
                CtxAttributeTypeHelper.getFirstValue(attribute));

        resourceMatch.setResourceAttributeDesignator(designator);
        resourceMatch.setAttributeValue(policyAttributeValue);
        resourceMatch.setMatchId(matchFunctionId);
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeValueType

        return resultList;
    }

    public static AttributeType getAttribute(ResourceMatchType resourceMatch) {

        AttributeValueType policyAttributeValue = resourceMatch.getAttributeValue();
        String attributeId = resourceMatch.getResourceAttributeDesignator().getAttributeId();
        return CtxAttributeTypeHelper.build(attributeId, policyAttributeValue.getDataType(), policyAttributeValue.getValue());

    }
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeValueType

    private PolicyAttributeValueHelper() {}

    public static AttributeValueType build(String type, String value) {

        AttributeValueType attributeValue = (AttributeValueType) builderFactory.getBuilder(elementQName)
                .buildObject(elementQName);

        attributeValue.setDataType(type);
        attributeValue.setValue(value);

        return attributeValue;
    }
View Full Code Here

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

Examples of org.opensaml.xacml.policy.AttributeValueType

        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

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));
       
        actionMatch.setActionAttributeDesignator(designator);
        actionMatch.setAttributeValue(policyAttributeValue);
        actionMatch.setMatchId(matchFunctionId);
       
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeValueType

        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
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.