Package org.opensaml.saml.saml2.metadata
Interface EntityDescriptor
- All Superinterfaces:
AttributeExtensibleXMLObject,CacheableSAMLObject,SAMLObject,SignableSAMLObject,SignableXMLObject,TimeBoundSAMLObject,XMLObject
- All Known Implementing Classes:
EntityDescriptorImpl
public interface EntityDescriptor
extends SignableSAMLObject, TimeBoundSAMLObject, CacheableSAMLObject, AttributeExtensibleXMLObject
SAML 2.0 Metadata EntityDescriptor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringElement name, no namespace.static final QNameDefault element name.static final QNameElement QName, no prefix.static final String"Name" attribute name.static final String"ID" attribute name.static final StringLocal name of the XSI type.static final QNameQName of the XSI type.Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAMEFields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME -
Method Summary
Modifier and TypeMethodDescriptionGets the additional metadata locations for this entity.Gets the affiliation descriptor for this entity.getAttributeAuthorityDescriptor(String supportedProtocol) Gets the firstAttributeAuthorityDescriptorrole descriptor for this entity that supports the given protocol.getAuthnAuthorityDescriptor(String supportedProtocol) Gets the firstAuthnAuthorityDescriptorrole descriptor for this entity that supports the given protocol.Get the contact people for this entity.Gets the entity ID for this entity descriptor.Gets the Extensions child of this object.getID()Gets the ID for this entity descriptor.getIDPSSODescriptor(String supportedProtocol) Gets the firstIDPSSODescriptorrole descriptor for this entity that supports the given protocol.Gets the organization for this entity.getPDPDescriptor(String supportedProtocol) Gets the firstPDPDescriptorrole descriptor for this entity that supports the given protocol.Gets all the role descriptors for this entity descriptor.getRoleDescriptors(QName typeOrName) Gets all the role descriptors for this entity descriptor that match the supplied QName parameter.getRoleDescriptors(QName typeOrName, String supportedProtocol) Gets all the role descriptors for this entity that support the given protocol.getSPSSODescriptor(String supportedProtocol) Gets the firstSPSSODescriptorrole descriptor for this entity that supports the given protocol.voidsetAffiliationDescriptor(AffiliationDescriptor descriptor) Sets the affiliation descriptor for this entity.voidsetEntityID(String id) Sets the entity ID for this entity descriptor.voidsetExtensions(Extensions extensions) Sets the Extensions child of this object.voidSets the ID for this entity descriptor.voidsetOrganization(Organization organization) Sets the organization for this entity.Methods inherited from interface org.opensaml.core.xml.AttributeExtensibleXMLObject
getUnknownAttributesMethods inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
getCacheDuration, setCacheDurationMethods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceIDMethods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
getValidUntil, isValid, setValidUntilMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
Element name, no namespace.- See Also:
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
-
TYPE_NAME
QName of the XSI type. -
ELEMENT_QNAME
Element QName, no prefix. -
ID_ATTRIB_NAME
"ID" attribute name.- See Also:
-
ENTITY_ID_ATTRIB_NAME
"Name" attribute name.- See Also:
-
-
Method Details
-
getEntityID
Gets the entity ID for this entity descriptor.- Returns:
- the entity ID for this entity descriptor
-
setEntityID
Sets the entity ID for this entity descriptor.- Parameters:
id- the entity ID for this entity descriptor
-
getID
Gets the ID for this entity descriptor.- Returns:
- the ID for this entity descriptor
-
setID
Sets the ID for this entity descriptor.- Parameters:
newID- the ID for this entity descriptor
-
getExtensions
Gets the Extensions child of this object.- Returns:
- the Extensions child of this object
-
setExtensions
Sets the Extensions child of this object.- Parameters:
extensions- the Extensions child of this object
-
getRoleDescriptors
Gets all the role descriptors for this entity descriptor.- Returns:
- the role descriptors for this entity descriptor
-
getRoleDescriptors
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
@Nonnull @Unmodifiable @NotLive List<RoleDescriptor> getRoleDescriptors(@Nonnull QName typeOrName, @Nonnull @NotEmpty String supportedProtocol) Gets all the role descriptors for this entity that support the given protocol.- Parameters:
typeOrName- the name of the rolesupportedProtocol- the supported protocol- Returns:
- the list of role descriptors that support the given protocol
-
getIDPSSODescriptor
Gets the firstIDPSSODescriptorrole descriptor for this entity that supports the given protocol.- Parameters:
supportedProtocol- protocol that must be supported- Returns:
- the
IDPSSODescriptorrole descriptor
-
getSPSSODescriptor
Gets the firstSPSSODescriptorrole descriptor for this entity that supports the given protocol.- Parameters:
supportedProtocol- protocol that must be supported- Returns:
- the
SPSSODescriptorrole descriptor
-
getAuthnAuthorityDescriptor
@Nullable AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(@Nonnull @NotEmpty String supportedProtocol) Gets the firstAuthnAuthorityDescriptorrole descriptor for this entity that supports the given protocol.- Parameters:
supportedProtocol- protocol that must be supported- Returns:
- the
AuthnAuthorityDescriptorrole descriptor
-
getAttributeAuthorityDescriptor
@Nullable AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(@Nonnull @NotEmpty String supportedProtocol) Gets the firstAttributeAuthorityDescriptorrole descriptor for this entity that supports the given protocol.- Parameters:
supportedProtocol- protocol that must be supported- Returns:
- the
AttributeAuthorityDescriptorrole descriptor
-
getPDPDescriptor
Gets the firstPDPDescriptorrole descriptor for this entity that supports the given protocol.- Parameters:
supportedProtocol- protocol that must be supported- Returns:
- the
PDPDescriptorrole descriptor
-
getAffiliationDescriptor
Gets the affiliation descriptor for this entity.- Returns:
- the affiliation descriptor for this entity
-
setAffiliationDescriptor
Sets the affiliation descriptor for this entity.- Parameters:
descriptor- the affiliation descriptor for this entity
-
getOrganization
Gets the organization for this entity.- Returns:
- the organization for this entity
-
setOrganization
Sets the organization for this entity.- Parameters:
organization- the organization for this entity
-
getContactPersons
Get the contact people for this entity.- Returns:
- the contact people for this entity
-
getAdditionalMetadataLocations
Gets the additional metadata locations for this entity.- Returns:
- the additional metadata locations for this entity
-