org.opensaml.saml2.metadata
Interface EntityDescriptor

All Superinterfaces:
org.opensaml.xml.AttributeExtensibleXMLObject, CacheableSAMLObject, SAMLObject, SignableSAMLObject, org.opensaml.xml.signature.SignableXMLObject, TimeBoundSAMLObject, org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject
All Known Implementing Classes:
EntityDescriptorImpl

public interface EntityDescriptor
extends SignableSAMLObject, TimeBoundSAMLObject, CacheableSAMLObject, org.opensaml.xml.AttributeExtensibleXMLObject

SAML 2.0 Metadata EntityDescriptor


Field Summary
static String DEFAULT_ELEMENT_LOCAL_NAME
          Element name, no namespace
static QName DEFAULT_ELEMENT_NAME
          Default element name
static QName ELEMENT_QNAME
          Element QName, no prefix
static String ENTITY_ID_ATTRIB_NAME
          "Name" attribute name
static String ID_ATTRIB_NAME
          "ID" attribute name
static String TYPE_LOCAL_NAME
          Local name of the XSI type
static QName TYPE_NAME
          QName of the XSI type
 
Fields inherited from interface org.opensaml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
 
Fields inherited from interface org.opensaml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
 
Method Summary
 List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
          Gets the additional metadata locations for this entity.
 AffiliationDescriptor getAffiliationDescriptor()
          Gets the affiliation descriptor for this entity.
 AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(String supportedProtocol)
          Gets the first AttributeAuthorityDescriptor role descriptor for this entity that supports the given protocol.
 AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(String supportedProtocol)
          Gets the first AuthnAuthorityDescriptor role descriptor for this entity that supports the given protocol.
 List<ContactPerson> getContactPersons()
          Get the contact people for this entity.
 String getEntityID()
          Gets the entity ID for this entity descriptor.
 Extensions getExtensions()
          Gets the Extensions child of this object.
 String getID()
          Gets the ID for this entity descriptor.
 IDPSSODescriptor getIDPSSODescriptor(String supportedProtocol)
          Gets the first IDPSSODescriptor role descriptor for this entity that supports the given protocol.
 Organization getOrganization()
          Gets the organization for this entity.
 PDPDescriptor getPDPDescriptor(String supportedProtocol)
          Gets the first PDPDescriptor role descriptor for this entity that supports the given protocol.
 List<RoleDescriptor> getRoleDescriptors()
          Gets all the role descriptors for this entity descriptor.
 List<RoleDescriptor> getRoleDescriptors(QName typeOrName)
          Gets all the role descriptors for this entity descriptor that match the supplied QName parameter.
 List<RoleDescriptor> getRoleDescriptors(QName typeOrName, String supportedProtocol)
          Gets all the role descriptors for this entity that support the given protocol.
 SPSSODescriptor getSPSSODescriptor(String supportedProtocol)
          Gets the first SPSSODescriptor role descriptor for this entity that supports the given protocol.
 void setAffiliationDescriptor(AffiliationDescriptor descriptor)
          Sets the affiliation descriptor for this entity.
 void setEntityID(String id)
          Sets the entity ID for this entity descriptor.
 void setExtensions(Extensions extensions)
          Sets the Extensions child of this object.
 void setID(String newID)
          Sets the ID for this entity descriptor.
 void setOrganization(Organization organization)
          Sets the organization for this entity.
 
Methods inherited from interface org.opensaml.common.SignableSAMLObject
getSignatureReferenceID
 
Methods inherited from interface org.opensaml.xml.signature.SignableXMLObject
getSignature, isSigned, setSignature
 
Methods inherited from interface org.opensaml.saml2.common.TimeBoundSAMLObject
getValidUntil, isValid, setValidUntil
 
Methods inherited from interface org.opensaml.saml2.common.CacheableSAMLObject
getCacheDuration, setCacheDuration
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 
Methods inherited from interface org.opensaml.xml.AttributeExtensibleXMLObject
getUnknownAttributes
 

Field Detail

DEFAULT_ELEMENT_LOCAL_NAME

static final String DEFAULT_ELEMENT_LOCAL_NAME
Element name, no namespace

See Also:
Constant Field Values

DEFAULT_ELEMENT_NAME

static final QName DEFAULT_ELEMENT_NAME
Default element name


TYPE_LOCAL_NAME

static final String TYPE_LOCAL_NAME
Local name of the XSI type

See Also:
Constant Field Values

TYPE_NAME

static final QName TYPE_NAME
QName of the XSI type


ELEMENT_QNAME

static final QName ELEMENT_QNAME
Element QName, no prefix


ID_ATTRIB_NAME

static final String ID_ATTRIB_NAME
"ID" attribute name

See Also:
Constant Field Values

ENTITY_ID_ATTRIB_NAME

static final String ENTITY_ID_ATTRIB_NAME
"Name" attribute name

See Also:
Constant Field Values
Method Detail

getEntityID

String getEntityID()
Gets the entity ID for this entity descriptor.

Returns:
the entity ID for this entity descriptor

setEntityID

void setEntityID(String id)
Sets the entity ID for this entity descriptor.

Parameters:
id - the entity ID for this entity descriptor

getID

String getID()
Gets the ID for this entity descriptor.

Returns:
the ID for this entity descriptor

setID

void setID(String newID)
Sets the ID for this entity descriptor.

Parameters:
newID - the ID for this entity descriptor

getExtensions

Extensions getExtensions()
Gets the Extensions child of this object.

Returns:
the Extensions child of this object

setExtensions

void setExtensions(Extensions extensions)
                   throws IllegalArgumentException
Sets the Extensions child of this object.

Parameters:
extensions - the Extensions child of this object
Throws:
IllegalArgumentException - thrown if the given extensions Object is already a child of another SAMLObject

getRoleDescriptors

List<RoleDescriptor> getRoleDescriptors()
Gets all the role descriptors for this entity descriptor.

Returns:
the role descriptors for this entity descriptor

getRoleDescriptors

List<RoleDescriptor> getRoleDescriptors(QName typeOrName)
Gets all the role descriptors for this entity descriptor that match the supplied QName parameter.

Parameters:
typeOrName - the name of the role
Returns:
the role descriptors for this entity descriptor

getRoleDescriptors

List<RoleDescriptor> getRoleDescriptors(QName typeOrName,
                                        String supportedProtocol)
Gets all the role descriptors for this entity that support the given protocol.

Parameters:
typeOrName - the name of the role
supportedProtocol - the supported protocol
Returns:
the list of role descriptors that support the given protocol

getIDPSSODescriptor

IDPSSODescriptor getIDPSSODescriptor(String supportedProtocol)
Gets the first IDPSSODescriptor role descriptor for this entity that supports the given protocol.

Returns:
the IDPSSODescriptor role descriptor

getSPSSODescriptor

SPSSODescriptor getSPSSODescriptor(String supportedProtocol)
Gets the first SPSSODescriptor role descriptor for this entity that supports the given protocol.

Returns:
the SPSSODescriptor role descriptor

getAuthnAuthorityDescriptor

AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(String supportedProtocol)
Gets the first AuthnAuthorityDescriptor role descriptor for this entity that supports the given protocol.

Returns:
the AuthnAuthorityDescriptor role descriptor

getAttributeAuthorityDescriptor

AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(String supportedProtocol)
Gets the first AttributeAuthorityDescriptor role descriptor for this entity that supports the given protocol.

Returns:
the AttributeAuthorityDescriptor role descriptor

getPDPDescriptor

PDPDescriptor getPDPDescriptor(String supportedProtocol)
Gets the first PDPDescriptor role descriptor for this entity that supports the given protocol.

Returns:
the PDPDescriptor role descriptor

getAffiliationDescriptor

AffiliationDescriptor getAffiliationDescriptor()
Gets the affiliation descriptor for this entity.

Returns:
the affiliation descriptor for this entity

setAffiliationDescriptor

void setAffiliationDescriptor(AffiliationDescriptor descriptor)
                              throws IllegalArgumentException
Sets the affiliation descriptor for this entity.

Parameters:
descriptor - the affiliation descriptor for this entity
Throws:
IllegalArgumentException - thrown if the descriptor is owned by another entity or if this entity already has one or more role descriptors associated with it

getOrganization

Organization getOrganization()
Gets the organization for this entity.

Returns:
the organization for this entity

setOrganization

void setOrganization(Organization organization)
                     throws IllegalArgumentException
Sets the organization for this entity.

Parameters:
organization - the organization for this entity
Throws:
IllegalArgumentException - thrown if this organization belongs to another entity

getContactPersons

List<ContactPerson> getContactPersons()
Get the contact people for this entity.

Returns:
the contact people for this entity

getAdditionalMetadataLocations

List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
Gets the additional metadata locations for this entity.

Returns:
the additional metadata locations for this entity


Copyright © 2006-2011 Internet2. All Rights Reserved.