Examples of SubjectsType


Examples of org.opensaml.xacml.policy.SubjectsType

   
   
    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        SubjectsType subjectsType = (SubjectsType) parentXMLObject;
       
        if(childXMLObject instanceof SubjectType){
            subjectsType.getSubjects().add((SubjectType)childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.SubjectsType

       
        if (subjectList.isEmpty()) {
            return null;
        }
       
        SubjectsType subjects = build();
       
        for (SubjectType subject : subjectList) {
            subjects.getSubjects().add(subject);
        }
       
        return subjects;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.SubjectsType

       
        if (subject == null) {
            return null;
        }
       
        SubjectsType subjects = build();
        subjects.getSubjects().add(subject);
       
        return subjects;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.SubjectsType

        List<AttributeWizard> attributeWizardList = new LinkedList<AttributeWizard>();
        List<AttributeType> attributeList = new LinkedList<AttributeType>();

        // get subjects
        SubjectsType subjects = target.getSubjects();

        if (subjects != null) {
            List<SubjectType> subjectList = subjects.getSubjects();

            if (!subjectList.isEmpty()) {

                if (subjectList.size() > 1) {
                    throw new UnsupportedTargetException("Only one SubjectType is allowed");
View Full Code Here

Examples of org.opensaml.xacml.policy.SubjectsType

                                                                                        attributeWizard.getMatchfunction(),
                                                                                        attributeWizard.getMatchFunctionDataType()));
            }
        }

        SubjectsType subjects = SubjectsHelper.build(SubjectHelper.build(subjectMatchTypeList));
        ResourcesType resources = ResourcesHelper.build(ResourceHelper.build(resourceMatchTypeList));
        ActionsType actions = ActionsHelper.build(ActionHelper.build(actionMatchTypeList));
        EnvironmentsType environments = EnvironmentsHelper.build(EnvironmentHelper.build(environmentMatchTypeList));

        target = TargetHelper.build(subjects, actions, resources, environments);
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.