Author: anil.saldhana(a)jboss.com
Date: 2011-06-21 16:35:05 -0400 (Tue, 21 Jun 2011)
New Revision: 1015
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AdditionalMetadataLocationType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AffiliationDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeAuthorityDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeConsumingServiceType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AuthnAuthorityDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactTypeType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EndpointType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntitiesDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntityDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ExtensionsType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IDPSSODescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IndexedEndpointType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyTypes.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedNameType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedURIType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/OrganizationType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/PDPDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RequestedAttributeType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RoleDescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SPSSODescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SSODescriptorType.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/TypeWithOtherAttributes.java
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/package-info.java
Log:
move the classes from newmodel to saml pkg
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AdditionalMetadataLocationType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AdditionalMetadataLocationType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AdditionalMetadataLocationType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,79 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.net.URI;
+
+
+/**
+ * <p>Java class for AdditionalMetadataLocationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AdditionalMetadataLocationType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>anyURI">
+ * <attribute name="namespace" use="required"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class AdditionalMetadataLocationType
+{
+ protected URI value;
+ protected URI namespace;
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link URI }
+ *
+ */
+ public URI getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link URI }
+ *
+ */
+ public void setValue(URI value)
+ {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the namespace property.
+ *
+ * @return
+ * possible object is
+ * {@link URI }
+ *
+ */
+ public URI getNamespace()
+ {
+ return namespace;
+ }
+
+ /**
+ * Sets the value of the namespace property.
+ *
+ * @param value
+ * allowed object is
+ * {@link URI }
+ *
+ */
+ public void setNamespace(URI value)
+ {
+ this.namespace = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AdditionalMetadataLocationType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AffiliationDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AffiliationDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AffiliationDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,250 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.picketlink.identity.xmlsec.w3.xmldsig.SignatureType;
+
+
+/**
+ * <p>Java class for AffiliationDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AffiliationDescriptorType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2000/09/xmldsig#}Signature"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AffiliateMember"
maxOccurs="unbounded"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}KeyDescriptor"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="affiliationOwnerID" use="required"
type="{urn:oasis:names:tc:SAML:2.0:metadata}entityIDType" />
+ * <attribute name="validUntil"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * <attribute name="cacheDuration"
type="{http://www.w3.org/2001/XMLSchema}duration" />
+ * <attribute name="ID"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class AffiliationDescriptorType extends TypeWithOtherAttributes
+{
+ protected SignatureType signature;
+ protected ExtensionsType extensions;
+ protected List<String> affiliateMember;
+ protected List<KeyDescriptorType> keyDescriptor;
+ protected String affiliationOwnerID;
+ protected XMLGregorianCalendar validUntil;
+ protected Duration cacheDuration;
+ protected String id;
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureType }
+ *
+ */
+ public SignatureType getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureType }
+ *
+ */
+ public void setSignature(SignatureType value) {
+ this.signature = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value) {
+ this.extensions = value;
+ }
+
+ /**
+ * Gets the value of the affiliateMember property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
affiliateMember property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAffiliateMember().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getAffiliateMember() {
+ if (affiliateMember == null) {
+ affiliateMember = new ArrayList<String>();
+ }
+ return this.affiliateMember;
+ }
+
+ /**
+ * Gets the value of the keyDescriptor property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
keyDescriptor property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getKeyDescriptor().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyDescriptorType }
+ *
+ *
+ */
+ public List<KeyDescriptorType> getKeyDescriptor() {
+ if (keyDescriptor == null) {
+ keyDescriptor = new ArrayList<KeyDescriptorType>();
+ }
+ return this.keyDescriptor;
+ }
+
+ /**
+ * Gets the value of the affiliationOwnerID property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getAffiliationOwnerID() {
+ return affiliationOwnerID;
+ }
+
+ /**
+ * Sets the value of the affiliationOwnerID property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setAffiliationOwnerID(String value) {
+ this.affiliationOwnerID = value;
+ }
+
+ /**
+ * Gets the value of the validUntil property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getValidUntil() {
+ return validUntil;
+ }
+
+ /**
+ * Sets the value of the validUntil property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setValidUntil(XMLGregorianCalendar value) {
+ this.validUntil = value;
+ }
+
+ /**
+ * Gets the value of the cacheDuration property.
+ *
+ * @return
+ * possible object is
+ * {@link Duration }
+ *
+ */
+ public Duration getCacheDuration() {
+ return cacheDuration;
+ }
+
+ /**
+ * Sets the value of the cacheDuration property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Duration }
+ *
+ */
+ public void setCacheDuration(Duration value) {
+ this.cacheDuration = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getID() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setID(String value) {
+ this.id = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AffiliationDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeAuthorityDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeAuthorityDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeAuthorityDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,201 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.picketlink.identity.federation.saml.v2.assertion.AttributeType;
+
+
+/**
+ * <p>Java class for AttributeAuthorityDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributeAuthorityDescriptorType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptorType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AttributeService"
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"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AttributeProfile"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:assertion}Attribute"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+
+public class AttributeAuthorityDescriptorType
+extends RoleDescriptorType
+{
+ protected List<EndpointType> attributeService = new
ArrayList<EndpointType>();
+ protected List<EndpointType> assertionIDRequestService = new
ArrayList<EndpointType>();
+ protected List<String> nameIDFormat = new ArrayList<String>();
+ protected List<String> attributeProfile = new ArrayList<String>();
+ protected List<AttributeType> attribute = new ArrayList<AttributeType>();
+
+ public AttributeAuthorityDescriptorType(List<String> protocolSupport)
+ {
+ super(protocolSupport);
+ }
+
+ /**
+ * Add an attribute service
+ * @param endpoint
+ */
+ public void addAttributeService( EndpointType endpoint )
+ {
+ this.attributeService.add(endpoint);
+ }
+
+ /**
+ * Add an assertion id request service
+ * @param endpoint
+ */
+ public void addAssertionIDRequestService( EndpointType endpoint )
+ {
+ this.assertionIDRequestService.add(endpoint);
+ }
+
+ /**
+ * Add a name id
+ * @param str
+ */
+ public void addNameIDFormat( String str )
+ {
+ this.nameIDFormat.add(str);
+ }
+
+ /**
+ * Add an attribute profile
+ * @param str
+ */
+ public void addAttributeProfile( String str )
+ {
+ this.attributeProfile.add(str);
+ }
+
+ /**
+ * Add an attribute
+ * @param attribute
+ */
+ public void addAttribute( AttributeType attribute )
+ {
+ this.attribute.add(attribute);
+ }
+
+ /**
+ * Remove an attribute service
+ * @param endpoint
+ */
+ public void removeAttributeService( EndpointType endpoint )
+ {
+ this.attributeService.remove( endpoint);
+ }
+
+ /**
+ * Remove assertion id request service
+ * @param endpoint
+ */
+ public void removeAssertionIDRequestService( EndpointType endpoint )
+ {
+ this.assertionIDRequestService.remove(endpoint);
+ }
+
+ /**
+ * Remove Name ID
+ * @param str
+ */
+ public void removeNameIDFormat( String str )
+ {
+ this.nameIDFormat.remove(str);
+ }
+
+ /**
+ * Remove attribute profile
+ * @param str
+ */
+ public void removeAttributeProfile( String str )
+ {
+ this.attributeProfile.remove(str);
+ }
+
+ /**
+ * Remove attribute
+ * @param attribute
+ */
+ public void removeAttribute( AttributeType attribute )
+ {
+ this.attribute.remove(attribute);
+ }
+
+ /**
+ * Gets the value of the attributeService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ *
+ *
+ */
+ public List<EndpointType> getAttributeService()
+ {
+ return Collections.unmodifiableList( this.attributeService );
+ }
+
+ /**
+ * 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 );
+ }
+
+ /**
+ * Gets the value of the attributeProfile property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getAttributeProfile()
+ {
+ return Collections.unmodifiableList( this.attributeProfile );
+ }
+
+ /**
+ * Gets the value of the attribute property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link AttributeType }
+ *
+ *
+ */
+ public List<AttributeType> getAttribute()
+ {
+ return Collections.unmodifiableList( this.attribute );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeAuthorityDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeConsumingServiceType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeConsumingServiceType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeConsumingServiceType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,200 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * <p>Java class for AttributeConsumingServiceType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AttributeConsumingServiceType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ServiceName"
maxOccurs="unbounded"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ServiceDescription"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}RequestedAttribute"
maxOccurs="unbounded"/>
+ * </sequence>
+ * <attribute name="index" use="required"
type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ * <attribute name="isDefault"
type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class AttributeConsumingServiceType
+{
+ protected List<LocalizedNameType> serviceName = new
ArrayList<LocalizedNameType>();
+
+ protected List<LocalizedNameType> serviceDescription = new
ArrayList<LocalizedNameType>();
+
+ protected List<RequestedAttributeType> requestedAttribute = new
ArrayList<RequestedAttributeType>();
+
+ protected int index;
+
+ protected Boolean isDefault;
+
+
+
+ public AttributeConsumingServiceType(int index)
+ {
+ this.index = index;
+ }
+
+ /**
+ * Add serviceName
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public void addServiceName( LocalizedNameType service )
+ {
+ this.serviceName.add(service) ;
+ }
+
+ /**
+ * Add serviceDescription.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public void addServiceDescription( LocalizedNameType desc )
+ {
+ this.serviceDescription.add(desc);
+ }
+
+ /**
+ * Add requestedAttribute
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RequestedAttributeType }
+ *
+ */
+ public void addRequestedAttribute( RequestedAttributeType req )
+ {
+ this.requestedAttribute.add(req);
+ }
+
+ /**
+ * remove serviceName
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public void removeServiceName( LocalizedNameType service )
+ {
+ this.serviceName.remove(service) ;
+ }
+
+ /**
+ * remove serviceDescription.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public void removeServiceDescription( LocalizedNameType desc )
+ {
+ this.serviceDescription.remove(desc);
+ }
+
+ /**
+ * remove requestedAttribute
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RequestedAttributeType }
+ *
+ */
+ public void removeRequestedAttribute( RequestedAttributeType req )
+ {
+ this.requestedAttribute.remove(req);
+ }
+
+
+ /**
+ * Gets the value of the serviceName property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public List<LocalizedNameType> getServiceName()
+ {
+ return Collections.unmodifiableList( this.serviceName );
+ }
+
+ /**
+ * Gets the value of the serviceDescription property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public List<LocalizedNameType> getServiceDescription()
+ {
+ return Collections.unmodifiableList( this.serviceDescription );
+ }
+
+ /**
+ * Gets the value of the requestedAttribute property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RequestedAttributeType }
+ *
+ *
+ */
+ public List<RequestedAttributeType> getRequestedAttribute()
+ {
+ return Collections.unmodifiableList( this.requestedAttribute );
+ }
+
+ /**
+ * Gets the value of the index property.
+ *
+ */
+ public int getIndex()
+ {
+ return index;
+ }
+
+ /**
+ * Gets the value of the isDefault property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isIsDefault()
+ {
+ return isDefault;
+ }
+
+ /**
+ * Sets the value of the isDefault property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setIsDefault(Boolean value)
+ {
+ this.isDefault = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AttributeConsumingServiceType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AuthnAuthorityDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AuthnAuthorityDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AuthnAuthorityDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,131 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * <p>Java class for AuthnAuthorityDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="AuthnAuthorityDescriptorType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptorType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AuthnQueryService"
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 AuthnAuthorityDescriptorType
+extends RoleDescriptorType
+{
+ protected List<EndpointType> authnQueryService = new
ArrayList<EndpointType>();
+ protected List<EndpointType> assertionIDRequestService = new
ArrayList<EndpointType>();
+ protected List<String> nameIDFormat = new ArrayList<String>();
+
+ public AuthnAuthorityDescriptorType(List<String> protocolSupport)
+ {
+ super(protocolSupport);
+ }
+
+ /**
+ * Add authn query service
+ * @param endpoint
+ */
+ public void addAuthnQueryService( EndpointType endpoint )
+ {
+ this.authnQueryService.add(endpoint);
+ }
+
+ /**
+ * Add assertion id request service
+ * @param endpoint
+ */
+ public void addAssertionIDRequestService( EndpointType endpoint )
+ {
+ this.assertionIDRequestService.add(endpoint);
+ }
+
+ /**
+ * Add name id format
+ * @param str
+ */
+ public void addNameIDFormat( String str )
+ {
+ this.nameIDFormat.add(str);
+ }
+
+ /**
+ * Remove authn query service
+ * @param endpoint
+ */
+ public void removeAuthnQueryService( EndpointType endpoint )
+ {
+ this.authnQueryService.remove(endpoint);
+ }
+
+ /**
+ * remove assertion id request service
+ * @param endpoint
+ */
+ public void removeAssertionIDRequestService( EndpointType endpoint )
+ {
+ this.assertionIDRequestService.remove(endpoint);
+ }
+
+ /**
+ * remove name id format
+ * @param str
+ */
+ public void removeNameIDFormat( String str )
+ {
+ this.nameIDFormat.remove(str);
+ }
+
+ /**
+ * Gets the value of the authnQueryService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ *
+ *
+ */
+ public List<EndpointType> getAuthnQueryService()
+ {
+ return Collections.unmodifiableList( this.authnQueryService );
+ }
+
+ /**
+ * 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 );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/AuthnAuthorityDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,231 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * <p>Java class for ContactType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="ContactType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}Company"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}GivenName"
minOccurs="0"/>
+ * <element ref="{urn:oasis:names:tc:SAML:2.0:metadata}SurName"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}EmailAddress"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}TelephoneNumber"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="contactType" use="required"
type="{urn:oasis:names:tc:SAML:2.0:metadata}ContactTypeType" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class ContactType extends TypeWithOtherAttributes
+{
+ protected ExtensionsType extensions;
+ protected String company;
+ protected String givenName;
+ protected String surName;
+ protected List<String> emailAddress = new ArrayList<String>();
+ protected List<String> telephoneNumber = new ArrayList<String>();
+ protected ContactTypeType contactType;
+
+
+
+ public ContactType(ContactTypeType contactType)
+ {
+ this.contactType = contactType;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value) {
+ this.extensions = value;
+ }
+
+ /**
+ * Gets the value of the company property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getCompany() {
+ return company;
+ }
+
+ /**
+ * Sets the value of the company property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setCompany(String value) {
+ this.company = value;
+ }
+
+ /**
+ * Gets the value of the givenName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getGivenName() {
+ return givenName;
+ }
+
+ /**
+ * Sets the value of the givenName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setGivenName(String value) {
+ this.givenName = value;
+ }
+
+ /**
+ * Gets the value of the surName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSurName() {
+ return surName;
+ }
+
+ /**
+ * Sets the value of the surName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSurName(String value) {
+ this.surName = value;
+ }
+
+ /**
+ * Add an email address
+ * @param email
+ */
+ public void addEmailAddress( String email )
+ {
+ this.emailAddress.add(email);
+ }
+
+ /**
+ * remove a telephone
+ * @param tel
+ */
+ public void removeTelephone( String tel )
+ {
+ this.telephoneNumber.remove(tel);
+ }
+
+ /**
+ * remove an email address
+ * @param email
+ */
+ public void removeEmailAddress( String email )
+ {
+ this.emailAddress.remove(email);
+ }
+
+ /**
+ * Add a telephone
+ * @param tel
+ */
+ public void addTelephone( String tel )
+ {
+ this.telephoneNumber.add(tel);
+ }
+
+ /**
+ * Gets the value of the emailAddress property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getEmailAddress()
+ {
+ return Collections.unmodifiableList( this.emailAddress );
+ }
+
+ /**
+ * Gets the value of the telephoneNumber property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getTelephoneNumber()
+ {
+ return Collections.unmodifiableList( this.telephoneNumber );
+ }
+
+ /**
+ * Gets the value of the contactType property.
+ *
+ * @return
+ * possible object is
+ * {@link ContactTypeType }
+ *
+ */
+ public ContactTypeType getContactType() {
+ return contactType;
+ }
+
+ /**
+ * Sets the value of the contactType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ContactTypeType }
+ *
+ */
+ public void setContactType(ContactTypeType value) {
+ this.contactType = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactTypeType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactTypeType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactTypeType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,49 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+
+
+/**
+ * <p>Java class for ContactTypeType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p>
+ * <pre>
+ * <simpleType name="ContactTypeType">
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="technical"/>
+ * <enumeration value="support"/>
+ * <enumeration value="administrative"/>
+ * <enumeration value="billing"/>
+ * <enumeration value="other"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+public enum ContactTypeType
+{
+ TECHNICAL("technical"),
+ SUPPORT("support"),
+ ADMINISTRATIVE("administrative"),
+ BILLING("billing"),
+ OTHER("other");
+ private final String value;
+
+ ContactTypeType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static ContactTypeType fromValue(String v) {
+ for (ContactTypeType c: ContactTypeType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ContactTypeType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EndpointType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EndpointType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EndpointType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,131 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for EndpointType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="EndpointType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * <attribute name="Binding" use="required"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="Location" use="required"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * <attribute name="ResponseLocation"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class EndpointType extends TypeWithOtherAttributes
+{
+
+ protected List<Object> any = new ArrayList<Object> ();
+
+ protected URI binding;
+ protected URI location;
+ protected URI responseLocation;
+
+
+ public EndpointType(URI binding, URI location)
+ {
+ this.binding = binding;
+ this.location = location;
+ }
+
+ /**
+ * Add an object
+ * @param obj
+ */
+ public void addObject( Object obj )
+ {
+ this.any.add(obj);
+ }
+
+ /**
+ * remove an object
+ * @param obj
+ */
+ public void removeObject( Object obj )
+ {
+ this.any.remove(obj);
+ }
+
+ /**
+ * Gets the value of the any property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny()
+ {
+ return Collections.unmodifiableList( this.any );
+ }
+
+ /**
+ * Gets the value of the binding property.
+ *
+ * @return
+ * possible object is
+ * {@link URI }
+ *
+ */
+ public URI getBinding()
+ {
+ return binding;
+ }
+
+ /**
+ * Gets the value of the location property.
+ *
+ * @return
+ * possible object is
+ * {@link URI }
+ *
+ */
+ public URI getLocation()
+ {
+ return location;
+ }
+
+ /**
+ * Gets the value of the responseLocation property.
+ *
+ * @return
+ * possible object is
+ * {@link URI }
+ *
+ */
+ public URI getResponseLocation() {
+ return responseLocation;
+ }
+
+ /**
+ * Sets the value of the responseLocation property.
+ *
+ * @param value
+ * allowed object is
+ * {@link URI }
+ *
+ */
+ public void setResponseLocation(URI value)
+ {
+ this.responseLocation = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EndpointType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntitiesDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntitiesDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntitiesDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,235 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for EntitiesDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="EntitiesDescriptorType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2000/09/xmldsig#}Signature"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <choice maxOccurs="unbounded">
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}EntityDescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}EntitiesDescriptor"/>
+ * </choice>
+ * </sequence>
+ * <attribute name="validUntil"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * <attribute name="cacheDuration"
type="{http://www.w3.org/2001/XMLSchema}duration" />
+ * <attribute name="ID"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * <attribute name="Name"
type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class EntitiesDescriptorType
+{
+ protected Element signature;
+ protected ExtensionsType extensions;
+ protected List<Object> entityDescriptor = new ArrayList<Object>();
+
+ protected XMLGregorianCalendar validUntil;
+ protected Duration cacheDuration;
+ protected String id;
+ protected String name;
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link Element }
+ *
+ */
+ public Element getSignature()
+ {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Element }
+ *
+ */
+ public void setSignature(Element value)
+ {
+ this.signature = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions()
+ {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value)
+ {
+ this.extensions = value;
+ }
+
+ /**
+ * Add an entity descriptor
+ * @param obj
+ */
+ public void addEntityDescriptor( Object obj )
+ {
+ this.entityDescriptor.add( obj );
+ }
+
+ /**
+ * Remove an entity descriptor
+ * @param obj
+ */
+ public void removeEntityDescriptor( Object obj )
+ {
+ this.entityDescriptor.remove( obj );
+ }
+
+ /**
+ * Gets the value of the entityDescriptorOrEntitiesDescriptor property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EntitiesDescriptorType }
+ * {@link EntityDescriptorType }
+ *
+ *
+ */
+ public List<Object> getEntityDescriptor()
+ {
+ return Collections.unmodifiableList( this.entityDescriptor );
+ }
+
+ /**
+ * Gets the value of the validUntil property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getValidUntil()
+ {
+ return validUntil;
+ }
+
+ /**
+ * Sets the value of the validUntil property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setValidUntil(XMLGregorianCalendar value)
+ {
+ this.validUntil = value;
+ }
+
+ /**
+ * Gets the value of the cacheDuration property.
+ *
+ * @return
+ * possible object is
+ * {@link Duration }
+ *
+ */
+ public Duration getCacheDuration() {
+ return cacheDuration;
+ }
+
+ /**
+ * Sets the value of the cacheDuration property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Duration }
+ *
+ */
+ public void setCacheDuration(Duration value) {
+ this.cacheDuration = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getID() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setID(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value)
+ {
+ this.name = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntitiesDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntityDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntityDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntityDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,409 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for EntityDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="EntityDescriptorType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2000/09/xmldsig#}Signature"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <choice>
+ * <choice maxOccurs="unbounded">
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}IDPSSODescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}SPSSODescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AuthnAuthorityDescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AttributeAuthorityDescriptor"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}PDPDescriptor"/>
+ * </choice>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AffiliationDescriptor"/>
+ * </choice>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Organization"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ContactPerson"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}AdditionalMetadataLocation"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="entityID" use="required"
type="{urn:oasis:names:tc:SAML:2.0:metadata}entityIDType" />
+ * <attribute name="validUntil"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * <attribute name="cacheDuration"
type="{http://www.w3.org/2001/XMLSchema}duration" />
+ * <attribute name="ID"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class EntityDescriptorType extends TypeWithOtherAttributes
+{
+ public static class EDTChoiceType
+ {
+ private List<EDTDescriptorChoiceType> descriptors = new
ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>();
+ private AffiliationDescriptorType affiliationDescriptor;
+
+ public EDTChoiceType(List<EDTDescriptorChoiceType> descriptors)
+ {
+ this.descriptors = descriptors;
+ }
+ public EDTChoiceType(AffiliationDescriptorType affiliationDescriptor)
+ {
+ this.affiliationDescriptor = affiliationDescriptor;
+ }
+ public List<EDTDescriptorChoiceType> getDescriptors()
+ {
+ return Collections.unmodifiableList( descriptors );
+ }
+ public AffiliationDescriptorType getAffiliationDescriptor()
+ {
+ return affiliationDescriptor;
+ }
+
+ public static EDTChoiceType oneValue( EDTDescriptorChoiceType edt )
+ {
+ List<EDTDescriptorChoiceType> aList = new
ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>();
+ aList.add(edt);
+ return new EDTChoiceType( aList );
+ }
+ }
+
+ public static class EDTDescriptorChoiceType
+ {
+ private RoleDescriptorType roleDescriptor;
+ private IDPSSODescriptorType idpDescriptor;
+ private SPSSODescriptorType spDescriptor;
+ private AuthnAuthorityDescriptorType authnDescriptor;
+ private AttributeAuthorityDescriptorType attribDescriptor;
+ private PDPDescriptorType pdpDescriptor;
+
+ public EDTDescriptorChoiceType(AuthnAuthorityDescriptorType authnDescriptor)
+ {
+ this.authnDescriptor = authnDescriptor;
+ }
+
+ public EDTDescriptorChoiceType(AttributeAuthorityDescriptorType attribDescriptor)
+ {
+ this.attribDescriptor = attribDescriptor;
+ }
+
+ public EDTDescriptorChoiceType(PDPDescriptorType pdpDescriptor)
+ {
+ this.pdpDescriptor = pdpDescriptor;
+ }
+
+ public EDTDescriptorChoiceType( SSODescriptorType sso )
+ {
+ if(sso instanceof IDPSSODescriptorType )
+ {
+ this.idpDescriptor = (IDPSSODescriptorType) sso;
+ }
+ else
+ this.spDescriptor = (SPSSODescriptorType) sso;
+ }
+
+ public EDTDescriptorChoiceType(RoleDescriptorType roleDescriptor)
+ {
+ this.roleDescriptor = roleDescriptor;
+ }
+
+
+ public RoleDescriptorType getRoleDescriptor()
+ {
+ return roleDescriptor;
+ }
+ public IDPSSODescriptorType getIdpDescriptor()
+ {
+ return idpDescriptor;
+ }
+ public SPSSODescriptorType getSpDescriptor()
+ {
+ return spDescriptor;
+ }
+ public AuthnAuthorityDescriptorType getAuthnDescriptor()
+ {
+ return authnDescriptor;
+ }
+ public AttributeAuthorityDescriptorType getAttribDescriptor()
+ {
+ return attribDescriptor;
+ }
+ public PDPDescriptorType getPdpDescriptor()
+ {
+ return pdpDescriptor;
+ }
+ }
+
+ protected Element signature;
+ protected ExtensionsType extensions;
+
+ protected List<EDTChoiceType> choiceType = new
ArrayList<EntityDescriptorType.EDTChoiceType>();
+
+ protected OrganizationType organization;
+
+ protected List<ContactType> contactPerson = new ArrayList<ContactType>();
+
+ protected List<AdditionalMetadataLocationType> additionalMetadataLocation = new
ArrayList<AdditionalMetadataLocationType>();
+
+ protected String entityID;
+
+ protected XMLGregorianCalendar validUntil;
+
+ protected Duration cacheDuration;
+
+ protected String id;
+
+ public EntityDescriptorType( String entityID )
+ {
+ this.entityID = entityID;
+ }
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link Element }
+ *
+ */
+ public Element getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Element }
+ *
+ */
+ public void setSignature( Element value) {
+ this.signature = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value) {
+ this.extensions = value;
+ }
+
+ /**
+ * Get a read only list of choice types
+ * @return
+ */
+ public List<EDTChoiceType> getChoiceType()
+ {
+ return Collections.unmodifiableList( choiceType );
+ }
+
+ /**
+ * Add a choice type
+ * @param choiceType
+ */
+ public void addChoiceType(EDTChoiceType choiceType)
+ {
+ this.choiceType.add( choiceType );
+ }
+
+ /**
+ * Remove a choice type
+ * @param choiceType
+ */
+ public void removeChoiceType(EDTChoiceType choiceType)
+ {
+ this.choiceType.remove( choiceType );
+ }
+
+ /**
+ * Gets the value of the organization property.
+ *
+ * @return
+ * possible object is
+ * {@link OrganizationType }
+ *
+ */
+ public OrganizationType getOrganization() {
+ return organization;
+ }
+
+ /**
+ * Sets the value of the organization property.
+ *
+ * @param value
+ * allowed object is
+ * {@link OrganizationType }
+ *
+ */
+ public void setOrganization(OrganizationType value) {
+ this.organization = value;
+ }
+
+ /**
+ * Add a {@link ContactType} contact person
+ * @param ct
+ */
+ public void addContactPerson( ContactType ct )
+ {
+ contactPerson.add(ct);
+ }
+
+ public void removeContactPerson( ContactType ct )
+ {
+ contactPerson.remove(ct);
+ }
+
+ /**
+ * Gets the value of the contactPerson property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ContactType }
+ *
+ *
+ */
+ public List<ContactType> getContactPerson()
+ {
+ return Collections.unmodifiableList( this.contactPerson );
+ }
+
+ /**
+ * Gets the value of the additionalMetadataLocation property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
additionalMetadataLocation property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAdditionalMetadataLocation().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link AdditionalMetadataLocationType }
+ *
+ *
+ */
+ public List<AdditionalMetadataLocationType> getAdditionalMetadataLocation()
+ {
+ return Collections.unmodifiableList( this.additionalMetadataLocation );
+ }
+
+ /**
+ * Gets the value of the entityID property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getEntityID() {
+ return entityID;
+ }
+
+ /**
+ * Gets the value of the validUntil property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getValidUntil() {
+ return validUntil;
+ }
+
+ /**
+ * Sets the value of the validUntil property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setValidUntil(XMLGregorianCalendar value) {
+ this.validUntil = value;
+ }
+
+ /**
+ * Gets the value of the cacheDuration property.
+ *
+ * @return
+ * possible object is
+ * {@link Duration }
+ *
+ */
+ public Duration getCacheDuration() {
+ return cacheDuration;
+ }
+
+ /**
+ * Sets the value of the cacheDuration property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Duration }
+ *
+ */
+ public void setCacheDuration(Duration value) {
+ this.cacheDuration = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getID() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setID(String value) {
+ this.id = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/EntityDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ExtensionsType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ExtensionsType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ExtensionsType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,64 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for ExtensionsType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="ExtensionsType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class ExtensionsType
+{
+ protected List<Object> any = new ArrayList<Object>();
+
+ /**
+ * Add an object
+ * @param obj
+ */
+ public void addObject( Object obj )
+ {
+ this.any.add(obj);
+ }
+
+ /**
+ * Remove an object
+ * @param obj
+ */
+ public void removeObject( Object obj )
+ {
+ this.any.remove(obj);
+ }
+
+ /**
+ * Gets the value of the any property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Element }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getAny()
+ {
+ return Collections.unmodifiableList( this.any );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/ExtensionsType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IDPSSODescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IDPSSODescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IDPSSODescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,237 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.picketlink.identity.federation.saml.v2.assertion.AttributeType;
+
+
+/**
+ * <p>Java class for IDPSSODescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="IDPSSODescriptorType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:metadata}SSODescriptorType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}SingleSignOnService"
maxOccurs="unbounded"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}NameIDMappingService"
maxOccurs="unbounded" minOccurs="0"/>
+ * <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}AttributeProfile"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:assertion}Attribute"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="WantAuthnRequestsSigned"
type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class IDPSSODescriptorType
+extends SSODescriptorType
+{
+ protected List<EndpointType> singleSignOnService = new
ArrayList<EndpointType>();
+
+ protected List<EndpointType> nameIDMappingService= new
ArrayList<EndpointType>();
+
+ protected List<EndpointType> assertionIDRequestService= new
ArrayList<EndpointType>();
+
+ protected List<String> attributeProfile = new ArrayList<String>();
+
+ protected List<AttributeType> attribute = new ArrayList<AttributeType>();
+
+ protected Boolean wantAuthnRequestsSigned;
+
+ public IDPSSODescriptorType(List<String> protocolSupport)
+ {
+ super(protocolSupport);
+ }
+
+ /**
+ * Add a SSO service
+ * @param endpt
+ */
+ public void addSingleSignOnService( EndpointType endpt)
+ {
+ this.singleSignOnService.add(endpt);
+ }
+
+ /**
+ * Add name id mapping service
+ * @param endpt
+ */
+ public void addNameIDMappingService( EndpointType endpt )
+ {
+ this.nameIDMappingService.add(endpt);
+ }
+
+ /**
+ * Add assertion id request service
+ * @param endpt
+ */
+ public void addAssertionIDRequestService( EndpointType endpt )
+ {
+ this.assertionIDRequestService.add(endpt);
+ }
+
+ /**
+ * Add attribute profile
+ * @param str
+ */
+ public void addAttributeProfile( String str )
+ {
+ this.attributeProfile.add( str );
+ }
+
+ /**
+ * Add attribute
+ * @param att
+ */
+ public void addAttribute( AttributeType att )
+ {
+ this.attribute.add(att);
+ }
+
+
+ /**
+ * Remove a SSO service
+ * @param endpt
+ */
+ public void removeSingleSignOnService( EndpointType endpt)
+ {
+ this.singleSignOnService.remove(endpt);
+ }
+
+ /**
+ * remove name id mapping service
+ * @param endpt
+ */
+ public void removeNameIDMappingService( EndpointType endpt )
+ {
+ this.nameIDMappingService.remove(endpt);
+ }
+
+ /**
+ * remove assertion id request service
+ * @param endpt
+ */
+ public void removeAssertionIDRequestService( EndpointType endpt )
+ {
+ this.assertionIDRequestService.remove(endpt);
+ }
+
+ /**
+ * Add attribute profile
+ * @param str
+ */
+ public void removeAttributeProfile( String str )
+ {
+ this.attributeProfile.remove( str );
+ }
+
+ /**
+ * Add attribute
+ * @param att
+ */
+ public void removeAttribute( AttributeType att )
+ {
+ this.attribute.remove(att);
+ }
+
+ /**
+ * Gets the value of the singleSignOnService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ */
+ public List<EndpointType> getSingleSignOnService()
+ {
+ return Collections.unmodifiableList( this.singleSignOnService );
+ }
+
+ /**
+ * Gets the value of the nameIDMappingService property.
+
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ */
+ public List<EndpointType> getNameIDMappingService()
+ {
+ return Collections.unmodifiableList( this.nameIDMappingService );
+ }
+
+ /**
+ * 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 attributeProfile property.
+ *
+ * <p>
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a <CODE>set</CODE> method for the
attributeProfile property.
+ *
+ * <p>
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ */
+ public List<String> getAttributeProfile()
+ {
+ return Collections.unmodifiableList( this.attributeProfile );
+ }
+
+ /**
+ * Gets the value of the attribute property.
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link AttributeType }
+ *
+ *
+ */
+ public List<AttributeType> getAttribute()
+ {
+ return Collections.unmodifiableList( this.attribute );
+ }
+
+ /**
+ * Gets the value of the wantAuthnRequestsSigned property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isWantAuthnRequestsSigned()
+ {
+ return wantAuthnRequestsSigned;
+ }
+
+ /**
+ * Sets the value of the wantAuthnRequestsSigned property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setWantAuthnRequestsSigned(Boolean value)
+ {
+ this.wantAuthnRequestsSigned = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IDPSSODescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IndexedEndpointType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IndexedEndpointType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IndexedEndpointType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,76 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.net.URI;
+
+
+
+/**
+ * <p>Java class for IndexedEndpointType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="IndexedEndpointType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:metadata}EndpointType">
+ * <attribute name="index" use="required"
type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ * <attribute name="isDefault"
type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class IndexedEndpointType
+extends EndpointType
+{
+
+ protected int index;
+ protected Boolean isDefault;
+
+ public IndexedEndpointType(URI binding, URI location)
+ {
+ super(binding, location);
+ }
+
+ /**
+ * Gets the value of the index property.
+ *
+ */
+ public int getIndex() {
+ return index;
+ }
+
+ /**
+ * Sets the value of the index property.
+ *
+ */
+ public void setIndex(int value) {
+ this.index = value;
+ }
+
+ /**
+ * Gets the value of the isDefault property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isIsDefault() {
+ return isDefault;
+ }
+
+ /**
+ * Sets the value of the isDefault property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setIsDefault(Boolean value) {
+ this.isDefault = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/IndexedEndpointType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,119 @@
+
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.picketlink.identity.xmlsec.w3.xmldsig.KeyInfoType;
+import org.picketlink.identity.xmlsec.w3.xmlenc.EncryptionMethodType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for KeyDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="KeyDescriptorType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}EncryptionMethod"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="use"
type="{urn:oasis:names:tc:SAML:2.0:metadata}KeyTypes" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class KeyDescriptorType
+{
+ protected Element keyInfo;
+ protected List<EncryptionMethodType> encryptionMethod = new
ArrayList<EncryptionMethodType>();
+
+ protected KeyTypes use;
+
+ /**
+ * Gets the value of the keyInfo property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyInfoType }
+ *
+ */
+ public Element getKeyInfo() {
+ return keyInfo;
+ }
+
+ /**
+ * Sets the value of the keyInfo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyInfoType }
+ *
+ */
+ public void setKeyInfo( Element value) {
+ this.keyInfo = value;
+ }
+
+ /**
+ * Add encryption method type
+ * @param e
+ */
+ public void addEncryptionMethod( EncryptionMethodType e )
+ {
+ this.encryptionMethod.add( e );
+ }
+
+ /**
+ * Remove encryption method type
+ * @param e
+ */
+ public void removeEncryptionMethod( EncryptionMethodType e )
+ {
+ this.encryptionMethod.remove( e );
+ }
+
+ /**
+ * Gets the value of the encryptionMethod property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EncryptionMethodType }
+ *
+ *
+ */
+ public List<EncryptionMethodType> getEncryptionMethod()
+ {
+ return Collections.unmodifiableList( this.encryptionMethod );
+ }
+
+ /**
+ * Gets the value of the use property.
+ *
+ * @return
+ * possible object is
+ * {@link KeyTypes }
+ *
+ */
+ public KeyTypes getUse() {
+ return use;
+ }
+
+ /**
+ * Sets the value of the use property.
+ *
+ * @param value
+ * allowed object is
+ * {@link KeyTypes }
+ *
+ */
+ public void setUse(KeyTypes value) {
+ this.use = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyTypes.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyTypes.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyTypes.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,42 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+
+
+/**
+ * <p>Java class for KeyTypes.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ * <p>
+ * <pre>
+ * <simpleType name="KeyTypes">
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="encryption"/>
+ * <enumeration value="signing"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+public enum KeyTypes
+{
+ ENCRYPTION("encryption"),
+ SIGNING("signing");
+ private final String value;
+
+ KeyTypes(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static KeyTypes fromValue(String v) {
+ for (KeyTypes c: KeyTypes.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/KeyTypes.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedNameType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedNameType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedNameType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,68 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+
+
+/**
+ * <p>Java class for localizedNameType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="localizedNameType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>string">
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang
use="required""/>
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class LocalizedNameType
+{
+ protected String value;
+ protected String lang;
+
+
+ public LocalizedNameType(String lang)
+ {
+ this.lang = lang;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getLang() {
+ return lang;
+ }
+}
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedNameType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedURIType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedURIType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedURIType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,69 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.net.URI;
+
+
+/**
+ * <p>Java class for localizedURIType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="localizedURIType">
+ * <simpleContent>
+ * <extension
base="<http://www.w3.org/2001/XMLSchema>anyURI">
+ * <attribute
ref="{http://www.w3.org/XML/1998/namespace}lang
use="required""/>
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class LocalizedURIType
+{
+
+ protected URI value;
+ protected String lang;
+
+ public LocalizedURIType(String lang)
+ {
+ this.lang = lang;
+ }
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public URI getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue( URI value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the lang property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getLang() {
+ return lang;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/LocalizedURIType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/OrganizationType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/OrganizationType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/OrganizationType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,155 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * <p>Java class for OrganizationType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="OrganizationType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}OrganizationName"
maxOccurs="unbounded"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}OrganizationDisplayName"
maxOccurs="unbounded"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}OrganizationURL"
maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+
+public class OrganizationType extends TypeWithOtherAttributes
+{
+
+ protected ExtensionsType extensions;
+ protected List<LocalizedNameType> organizationName = new
ArrayList<LocalizedNameType>();
+
+ protected List<LocalizedNameType> organizationDisplayName = new
ArrayList<LocalizedNameType>();
+
+ protected List<LocalizedURIType> organizationURL = new
ArrayList<LocalizedURIType>();
+
+ /**
+ * Add an organization name
+ * @param name
+ */
+ public void addOrganizationName( LocalizedNameType name )
+ {
+ this.organizationName.add(name);
+ }
+
+ /**
+ * Add organization display name
+ * @param name
+ */
+ public void addOrganizationDisplayName( LocalizedNameType name )
+ {
+ this.organizationDisplayName.add(name);
+ }
+
+ /**
+ * Add organization url
+ * @param uri
+ */
+ public void addOrganizationURL( LocalizedURIType uri )
+ {
+ this.organizationURL.add(uri);
+ }
+
+ /**
+ * remove an organization name
+ * @param name
+ */
+ public void removeOrganizationName( LocalizedNameType name )
+ {
+ this.organizationName.remove(name);
+ }
+
+ /**
+ * remove organization display name
+ * @param name
+ */
+ public void removeOrganizationDisplayName( LocalizedNameType name )
+ {
+ this.organizationDisplayName.remove(name);
+ }
+
+ /**
+ * remove organization url
+ * @param uri
+ */
+ public void removeOrganizationURL( LocalizedURIType uri )
+ {
+ this.organizationURL.remove(uri);
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value) {
+ this.extensions = value;
+ }
+
+ /**
+ * Gets the value of the organizationName property.
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ */
+ public List<LocalizedNameType> getOrganizationName()
+ {
+ return Collections.unmodifiableList( this.organizationName );
+ }
+
+ /**
+ * Gets the value of the organizationDisplayName property.
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LocalizedNameType }
+ *
+ *
+ */
+ public List<LocalizedNameType> getOrganizationDisplayName()
+ {
+ return Collections.unmodifiableList( this.organizationDisplayName );
+ }
+
+ /**
+ * Gets the value of the organizationURL property.
+ *
+
+ */
+ public List<LocalizedURIType> getOrganizationURL()
+ {
+ return Collections.unmodifiableList( this.organizationURL );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/OrganizationType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/PDPDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/PDPDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/PDPDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,130 @@
+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 );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/PDPDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RequestedAttributeType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RequestedAttributeType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RequestedAttributeType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,62 @@
+
+
+
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import org.picketlink.identity.federation.saml.v2.assertion.AttributeType;
+
+
+/**
+ * <p>Java class for RequestedAttributeType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="RequestedAttributeType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:assertion}AttributeType">
+ * <attribute name="isRequired"
type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </extension>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public class RequestedAttributeType
+extends AttributeType
+{
+
+ public RequestedAttributeType(String name)
+ {
+ super(name);
+ }
+
+ protected Boolean isRequired;
+
+ /**
+ * Gets the value of the isRequired property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isIsRequired()
+ {
+ return isRequired;
+ }
+
+ /**
+ * Sets the value of the isRequired property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setIsRequired(Boolean value)
+ {
+ this.isRequired = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RequestedAttributeType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RoleDescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RoleDescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RoleDescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,298 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import javax.xml.datatype.Duration;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+import org.picketlink.identity.xmlsec.w3.xmldsig.SignatureType;
+
+
+/**
+ * <p>Java class for RoleDescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="RoleDescriptorType">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element
ref="{http://www.w3.org/2000/09/xmldsig#}Signature"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Extensions"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}KeyDescriptor"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}Organization"
minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ContactPerson"
maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="ID"
type="{http://www.w3.org/2001/XMLSchema}ID" />
+ * <attribute name="validUntil"
type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ * <attribute name="cacheDuration"
type="{http://www.w3.org/2001/XMLSchema}duration" />
+ * <attribute name="protocolSupportEnumeration"
use="required"
type="{urn:oasis:names:tc:SAML:2.0:metadata}anyURIListType" />
+ * <attribute name="errorURL"
type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+public abstract class RoleDescriptorType extends TypeWithOtherAttributes
+{
+ protected SignatureType signature;
+ protected ExtensionsType extensions;
+ protected List<KeyDescriptorType> keyDescriptor = new
ArrayList<KeyDescriptorType>();
+ protected OrganizationType organization;
+ protected List<ContactType> contactPerson = new ArrayList<ContactType>();
+ protected String id;
+ protected XMLGregorianCalendar validUntil;
+ protected Duration cacheDuration;
+ protected List<String> protocolSupportEnumeration = new
ArrayList<String>();
+ protected String errorURL;
+
+ public RoleDescriptorType( List<String> protocolSupport )
+ {
+ protocolSupportEnumeration.addAll( protocolSupport );
+ }
+
+ /**
+ * Add key descriptor
+ * @param keyD
+ */
+ public void addKeyDescriptor( KeyDescriptorType keyD )
+ {
+ this.keyDescriptor.add(keyD);
+ }
+
+ /**
+ * Add contact
+ * @param contact
+ */
+ public void addContactPerson( ContactType contact )
+ {
+ this.contactPerson.add(contact);
+ }
+
+ /**
+ * remove key descriptor
+ * @param keyD
+ */
+ public void removeKeyDescriptor( KeyDescriptorType keyD )
+ {
+ this.keyDescriptor.remove(keyD);
+ }
+
+ /**
+ * remove contact
+ * @param contact
+ */
+ public void removeContactPerson( ContactType contact )
+ {
+ this.contactPerson.remove(contact);
+ }
+
+ /**
+ * Gets the value of the signature property.
+ *
+ * @return
+ * possible object is
+ * {@link SignatureType }
+ *
+ */
+ public SignatureType getSignature() {
+ return signature;
+ }
+
+ /**
+ * Sets the value of the signature property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SignatureType }
+ *
+ */
+ public void setSignature(SignatureType value) {
+ this.signature = value;
+ }
+
+ /**
+ * Gets the value of the extensions property.
+ *
+ * @return
+ * possible object is
+ * {@link ExtensionsType }
+ *
+ */
+ public ExtensionsType getExtensions() {
+ return extensions;
+ }
+
+ /**
+ * Sets the value of the extensions property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ExtensionsType }
+ *
+ */
+ public void setExtensions(ExtensionsType value) {
+ this.extensions = value;
+ }
+
+ /**
+ * Gets the value of the keyDescriptor property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link KeyDescriptorType }
+ *
+ *
+ */
+ public List<KeyDescriptorType> getKeyDescriptor() {
+ return Collections.unmodifiableList( this.keyDescriptor );
+ }
+
+ /**
+ * Gets the value of the organization property.
+ *
+ * @return
+ * possible object is
+ * {@link OrganizationType }
+ *
+ */
+ public OrganizationType getOrganization() {
+ return organization;
+ }
+
+ /**
+ * Sets the value of the organization property.
+ *
+ * @param value
+ * allowed object is
+ * {@link OrganizationType }
+ *
+ */
+ public void setOrganization(OrganizationType value) {
+ this.organization = value;
+ }
+
+ /**
+ * Gets the value of the contactPerson property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ContactType }
+ *
+ *
+ */
+ public List<ContactType> getContactPerson() {
+ return Collections.unmodifiableList( this.contactPerson );
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getID() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setID(String value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the validUntil property.
+ *
+ * @return
+ * possible object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public XMLGregorianCalendar getValidUntil() {
+ return validUntil;
+ }
+
+ /**
+ * Sets the value of the validUntil property.
+ *
+ * @param value
+ * allowed object is
+ * {@link XMLGregorianCalendar }
+ *
+ */
+ public void setValidUntil(XMLGregorianCalendar value) {
+ this.validUntil = value;
+ }
+
+ /**
+ * Gets the value of the cacheDuration property.
+ *
+ * @return
+ * possible object is
+ * {@link Duration }
+ *
+ */
+ public Duration getCacheDuration() {
+ return cacheDuration;
+ }
+
+ /**
+ * Sets the value of the cacheDuration property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Duration }
+ *
+ */
+ public void setCacheDuration(Duration value) {
+ this.cacheDuration = value;
+ }
+
+ /**
+ * Gets the value of the protocolSupportEnumeration property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getProtocolSupportEnumeration() {
+ return Collections.unmodifiableList( this.protocolSupportEnumeration );
+ }
+
+ /**
+ * Gets the value of the errorURL property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getErrorURL() {
+ return errorURL;
+ }
+
+ /**
+ * Sets the value of the errorURL property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setErrorURL(String value) {
+ this.errorURL = value;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/RoleDescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SPSSODescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SPSSODescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SPSSODescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,150 @@
+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;
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SPSSODescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SSODescriptorType.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SSODescriptorType.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SSODescriptorType.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,160 @@
+package org.picketlink.identity.federation.saml.v2.metadata;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * <p>Java class for SSODescriptorType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="SSODescriptorType">
+ * <complexContent>
+ * <extension
base="{urn:oasis:names:tc:SAML:2.0:metadata}RoleDescriptorType">
+ * <sequence>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ArtifactResolutionService"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}SingleLogoutService"
maxOccurs="unbounded" minOccurs="0"/>
+ * <element
ref="{urn:oasis:names:tc:SAML:2.0:metadata}ManageNameIDService"
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 abstract class SSODescriptorType extends RoleDescriptorType
+{
+ protected List<IndexedEndpointType> artifactResolutionService = new
ArrayList<IndexedEndpointType>();
+ protected List<EndpointType> singleLogoutService = new
ArrayList<EndpointType>();
+ protected List<EndpointType> manageNameIDService = new
ArrayList<EndpointType>();
+ protected List<String> nameIDFormat = new ArrayList<String>();
+
+
+ public SSODescriptorType(List<String> protocolSupport)
+ {
+ super(protocolSupport);
+ }
+
+ /**
+ * Add SLO Service
+ * @param endpt
+ */
+ public void addSingleLogoutService( EndpointType endpt )
+ {
+ this.singleLogoutService.add(endpt);
+ }
+
+ /**
+ * Add atrifact resolution service
+ * @param i
+ */
+ public void addArtifactResolutionService( IndexedEndpointType i )
+ {
+ this.artifactResolutionService.add(i);
+ }
+
+ /**
+ * Add manage name id service
+ * @param end
+ */
+ public void addManageNameIDService( EndpointType end )
+ {
+ this.manageNameIDService.add(end);
+ }
+
+ /**
+ * Add Name ID Format
+ * @param s
+ */
+ public void addNameIDFormat( String s )
+ {
+ this.nameIDFormat.add(s);
+ }
+
+ /**
+ * remove SLO Service
+ * @param endpt
+ */
+ public void removeSingleLogoutService( EndpointType endpt )
+ {
+ this.singleLogoutService.remove(endpt);
+ }
+
+ /**
+ * remove atrifact resolution service
+ * @param i
+ */
+ public void removeArtifactResolutionService( IndexedEndpointType i )
+ {
+ this.artifactResolutionService.remove(i);
+ }
+
+ /**
+ * remove manage name id service
+ * @param end
+ */
+ public void removeManageNameIDService( EndpointType end )
+ {
+ this.manageNameIDService.remove(end);
+ }
+
+ /**
+ * remove Name ID Format
+ * @param s
+ */
+ public void removeNameIDFormat( String s )
+ {
+ this.nameIDFormat.remove(s);
+ }
+
+ /**
+ * Gets the value of the artifactResolutionService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link IndexedEndpointType }
+ */
+ public List<IndexedEndpointType> getArtifactResolutionService()
+ {
+ return Collections.unmodifiableList( this.artifactResolutionService );
+ }
+
+ /**
+ * Gets the value of the singleLogoutService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ */
+ public List<EndpointType> getSingleLogoutService()
+ {
+ return Collections.unmodifiableList( this.singleLogoutService );
+ }
+
+ /**
+ * Gets the value of the manageNameIDService property.
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EndpointType }
+ */
+ public List<EndpointType> getManageNameIDService()
+ {
+ return Collections.unmodifiableList( this.manageNameIDService );
+ }
+
+ /**
+ * 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 );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/SSODescriptorType.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/TypeWithOtherAttributes.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/TypeWithOtherAttributes.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/TypeWithOtherAttributes.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,70 @@
+/*
+ * 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.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+/**
+ * Abstract base class for types that can have extra attributes
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Dec 10, 2010
+ */
+public abstract class TypeWithOtherAttributes
+{
+ protected Map<QName, String> otherAttributes = new HashMap<QName,
String>();
+
+ /**
+ * Add other attribute
+ * @param qame
+ * @param value
+ */
+ public void addOtherAttribute( QName qame, String value )
+ {
+ otherAttributes.put(qame, value);
+ }
+
+ /**
+ * Remove other attribute
+ * @param qame
+ * @param value
+ */
+ public void removeOtherAttribute( QName qame )
+ {
+ otherAttributes.remove( qame );
+ }
+
+ /**
+ * Gets a map that contains attributes that aren't bound to any typed property on
this class.
+ *
+ *
+ * @return
+ * always non-null
+ */
+ public Map<QName, String> getOtherAttributes()
+ {
+ return Collections.unmodifiableMap( otherAttributes );
+ }
+}
\ No newline at end of file
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/TypeWithOtherAttributes.java
___________________________________________________________________
Added: svn:executable
+ *
Added:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/package-info.java
===================================================================
---
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/package-info.java
(rev 0)
+++
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/package-info.java 2011-06-21
20:35:05 UTC (rev 1015)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
Implementation, vhudson-jaxb-ri-2.1-661
+// See <a
href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/...
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2008.12.08 at 05:45:20 PM CST
+//
+
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"urn:oasis:names:tc:SAML:2.0:metadata", elementFormDefault =
javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.picketlink.identity.federation.saml.v2.metadata;
Property changes on:
federation/trunk/picketlink-fed-model/src/main/java/org/picketlink/identity/federation/saml/v2/metadata/package-info.java
___________________________________________________________________
Added: svn:executable
+ *