/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.picketlink.identity.federation.saml.v2.metadata;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* <p>
* Java class for SPSSODescriptorType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SPSSODescriptorType">
* <complexContent>
* <extension base="{urn:oasis:names:tc:SAML:2.0:metadata}SSODescriptorType">
* <sequence>
* <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}AssertionConsumerService" maxOccurs="unbounded"/>
* <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}AttributeConsumingService" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="AuthnRequestsSigned" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="WantAssertionsSigned" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
public class SPSSODescriptorType extends SSODescriptorType {
protected List<IndexedEndpointType> assertionConsumerService = new ArrayList<IndexedEndpointType>();
protected List<AttributeConsumingServiceType> attributeConsumingService = new ArrayList<AttributeConsumingServiceType>();
protected Boolean authnRequestsSigned;
protected Boolean wantAssertionsSigned;
public SPSSODescriptorType(List<String> protocolSupport) {
super(protocolSupport);
}
/**
* Add an Assertion Consumer Service
*
* @param assertionConsumer an endpoint of type {@link IndexedEndpointType}
*/
public void addAssertionConsumerService(IndexedEndpointType assertionConsumer) {
this.assertionConsumerService.add(assertionConsumer);
}
/**
* Add an attribute consumer
*
* @param attributeConsumer an instance of type {@link AttributeConsumingServiceType}
*/
public void addAttributeConsumerService(AttributeConsumingServiceType attributeConsumer) {
this.attributeConsumingService.add(attributeConsumer);
}
/**
* Remove an Assertion Consumer Service
*
* @param assertionConsumer an endpoint of type {@link IndexedEndpointType}
*/
public void removeAssertionConsumerService(IndexedEndpointType assertionConsumer) {
this.assertionConsumerService.remove(assertionConsumer);
}
/**
* Remove an attribute consumer
*
* @param attributeConsumer an instance of type {@link AttributeConsumingServiceType}
*/
public void removeAttributeConsumerService(AttributeConsumingServiceType attributeConsumer) {
this.attributeConsumingService.remove(attributeConsumer);
}
/**
* Gets the value of the assertionConsumerService property.
* <p>
* Objects of the following type(s) are allowed in the list {@link IndexedEndpointType }
*/
public List<IndexedEndpointType> getAssertionConsumerService() {
return Collections.unmodifiableList(this.assertionConsumerService);
}
/**
* Gets the value of the attributeConsumingService property.
* <p>
* Objects of the following type(s) are allowed in the list {@link AttributeConsumingServiceType }
*/
public List<AttributeConsumingServiceType> getAttributeConsumingService() {
return Collections.unmodifiableList(this.attributeConsumingService);
}
/**
* Gets the value of the authnRequestsSigned property.
*
* @return possible object is {@link Boolean }
*
*/
public Boolean isAuthnRequestsSigned() {
return authnRequestsSigned;
}
/**
* Sets the value of the authnRequestsSigned property.
*
* @param value allowed object is {@link Boolean }
*
*/
public void setAuthnRequestsSigned(Boolean value) {
this.authnRequestsSigned = value;
}
/**
* Gets the value of the wantAssertionsSigned property.
*
* @return possible object is {@link Boolean }
*
*/
public Boolean isWantAssertionsSigned() {
return wantAssertionsSigned;
}
/**
* Sets the value of the wantAssertionsSigned property.
*
* @param value allowed object is {@link Boolean }
*
*/
public void setWantAssertionsSigned(Boolean value) {
this.wantAssertionsSigned = value;
}
}