Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.EnvironmentsType


    }
   
    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        EnvironmentsType environmentsType = (EnvironmentsType) parentXMLObject;
       
        if(childXMLObject instanceof EnvironmentType){
            environmentsType.getEnvrionments().add((EnvironmentType)childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here


        if (environment == null) {
            return null;
        }

        EnvironmentsType environments = buildAnyEnvironment();

        if (environment != null) {
            environments.getEnvrionments().add(environment);
        }
        return environments;
    }
View Full Code Here

        if (environmentList.isEmpty()) {
            return null;
        }

        EnvironmentsType environments = buildAnyEnvironment();

        for (EnvironmentType environment : environmentList) {
            environments.getEnvrionments().add(environment);
        }
        return environments;
    }
View Full Code Here

                attributeList.addAll(ActionMatchHelper.getAttributeList(actionList.get(0).getActionMatches()));
            }
        }

        // get environments
        EnvironmentsType environments = target.getEnvironments();

        if (environments != null) {
            List<EnvironmentType> environmentList = environments.getEnvrionments();

            if (!environmentList.isEmpty()) {

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

        }

        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

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

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.