Examples of AttributeDesignatorType


Examples of org.opensaml.xacml.policy.AttributeDesignatorType

    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement)
      throws MarshallingException {
  AttributeDesignatorType attributeDesignatorType = (AttributeDesignatorType) xmlObject;

  if (!DatatypeHelper.isEmpty(attributeDesignatorType.getAttributeId())) {
      domElement.setAttribute(
        AttributeDesignatorType.ATTRIBUTE_ID_ATTRIB_NAME,
        attributeDesignatorType.getAttributeId());
  }
  if (!DatatypeHelper.isEmpty(attributeDesignatorType.getDataType())) {
      domElement.setAttribute(
        AttributeDesignatorType.DATA_TYPE_ATTRIB_NAME,
        attributeDesignatorType.getDataType());
  }
  if (!DatatypeHelper.isEmpty(attributeDesignatorType.getIssuer())) {
      domElement.setAttribute(AttributeDesignatorType.ISSUER_ATTRIB_NAME,
        attributeDesignatorType.getIssuer());
  }
  if (attributeDesignatorType.getMustBePresentXSBoolean() != null) {
      domElement.setAttribute(
        AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME,
        Boolean.toString(attributeDesignatorType
          .getMustBePresentXSBoolean().getValue()));
  }

    }
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

            return null;
        }

        SubjectMatchType subjectMatch = build();

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

       
        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

    public static AttributeType getAttribute(SubjectMatchType subjectMatch) {

        AttributeValueType policyAttributeValue = subjectMatch.getAttributeValue();

        AttributeDesignatorType designator = subjectMatch.getSubjectAttributeDesignator();
        if (designator == null) { // TODO: throw exception
            log.error("DESIGNATOR IS MISSING");
        }

        return CtxAttributeTypeHelper.build(designator.getAttributeId(), policyAttributeValue.getDataType(), policyAttributeValue
                .getValue());

    }
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

            return null;
        }

        ResourceMatchType resourceMatch = build();

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

        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
        AttributeValueType policyAttributeValue = PolicyAttributeValueHelper.build(attributeDataType,
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

    private AttributeDesignatorHelper() {}

    public static AttributeDesignatorType build(QName designatorType, AttributeType attribute) {
       
        AttributeDesignatorType attributeDesignator = (AttributeDesignatorType) Configuration
                .getBuilderFactory().getBuilder(designatorType).buildObject(designatorType);
       
        attributeDesignator.setAttribtueId(attribute.getAttributeID());
        attributeDesignator.setDataType(attribute.getDataType());
       
        return attributeDesignator;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

            return null;
        }
       
        EnvironmentMatchType environmentMatch = build();
       
        AttributeDesignatorType designator = AttributeDesignatorHelper.build(
                AttributeDesignatorType.ACTION_ATTRIBUTE_DESIGNATOR_ELEMENT_NAME, attribute);
       
        String attributeDataType =  (matchFunctionDatatype == null ?attribute.getDataType() : matchFunctionDatatype);
       
        AttributeValueType policyAttributeValue = PolicyAttributeValueHelper.build(attributeDataType,
View Full Code Here

Examples of org.opensaml.xacml.policy.AttributeDesignatorType

            return null;
        }
       
        ActionMatchType actionMatch = build();
       
        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));
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.