/*
* 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 PDPDescriptorType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PDPDescriptorType">
* <complexContent>
* <extension base="{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptorType">
* <sequence>
* <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}AuthzService" maxOccurs="unbounded"/>
* <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}AssertionIDRequestService" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}NameIDFormat" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
public class PDPDescriptorType extends RoleDescriptorType {
protected List<EndpointType> authzService = new ArrayList<EndpointType>();
protected List<EndpointType> assertionIDRequestService = new ArrayList<EndpointType>();
protected List<String> nameIDFormat = new ArrayList<String>();
public PDPDescriptorType(List<String> protocolSupport) {
super(protocolSupport);
}
/**
* Add authorization service
*
* @param endpt
*/
public void addAuthZService(EndpointType endpt) {
this.authzService.add(endpt);
}
/**
* Add assertion id request service
*
* @param endpt
*/
public void addAssertionIDRequestService(EndpointType endpt) {
this.assertionIDRequestService.add(endpt);
}
/**
* Add Name ID Format
*
* @param str
*/
public void addNameIDFormat(String str) {
this.nameIDFormat.add(str);
}
/**
* remove authorization service
*
* @param endpt
*/
public void removeAuthZService(EndpointType endpt) {
this.authzService.remove(endpt);
}
/**
* remove assertion id request service
*
* @param endpt
*/
public void removeAssertionIDRequestService(EndpointType endpt) {
this.assertionIDRequestService.remove(endpt);
}
/**
* remove Name ID Format
*
* @param str
*/
public void removeNameIDFormat(String str) {
this.nameIDFormat.remove(str);
}
/**
* Gets the value of the authzService property.
* <p>
* Objects of the following type(s) are allowed in the list {@link EndpointType }
*/
public List<EndpointType> getAuthzService() {
return Collections.unmodifiableList(this.authzService);
}
/**
* Gets the value of the assertionIDRequestService property.
*
* <p>
* Objects of the following type(s) are allowed in the list {@link EndpointType }
*/
public List<EndpointType> getAssertionIDRequestService() {
return Collections.unmodifiableList(this.assertionIDRequestService);
}
/**
* Gets the value of the nameIDFormat property.
* <p>
* Objects of the following type(s) are allowed in the list {@link String }
*/
public List<String> getNameIDFormat() {
return Collections.unmodifiableList(this.nameIDFormat);
}
}