Interface EntityDescriptor

All Superinterfaces:
AttributeExtensibleXMLObject, CacheableSAMLObject, SAMLObject, SignableSAMLObject, SignableXMLObject, TimeBoundSAMLObject, XMLObject
All Known Implementing Classes:
EntityDescriptorImpl

SAML 2.0 Metadata EntityDescriptor.
  • Field Details

    • DEFAULT_ELEMENT_LOCAL_NAME

      @Nonnull @NotEmpty static final String DEFAULT_ELEMENT_LOCAL_NAME
      Element name, no namespace.
      See Also:
    • DEFAULT_ELEMENT_NAME

      @Nonnull static final QName DEFAULT_ELEMENT_NAME
      Default element name.
    • TYPE_LOCAL_NAME

      @Nonnull @NotEmpty static final String TYPE_LOCAL_NAME
      Local name of the XSI type.
      See Also:
    • TYPE_NAME

      @Nonnull static final QName TYPE_NAME
      QName of the XSI type.
    • ELEMENT_QNAME

      @Nonnull static final QName ELEMENT_QNAME
      Element QName, no prefix.
    • ID_ATTRIB_NAME

      @Nonnull @NotEmpty static final String ID_ATTRIB_NAME
      "ID" attribute name.
      See Also:
    • ENTITY_ID_ATTRIB_NAME

      @Nonnull @NotEmpty static final String ENTITY_ID_ATTRIB_NAME
      "Name" attribute name.
      See Also:
  • Method Details

    • getEntityID

      @Nullable String getEntityID()
      Gets the entity ID for this entity descriptor.
      Returns:
      the entity ID for this entity descriptor
    • setEntityID

      void setEntityID(@Nullable String id)
      Sets the entity ID for this entity descriptor.
      Parameters:
      id - the entity ID for this entity descriptor
    • getID

      @Nullable String getID()
      Gets the ID for this entity descriptor.
      Returns:
      the ID for this entity descriptor
    • setID

      void setID(@Nullable String newID)
      Sets the ID for this entity descriptor.
      Parameters:
      newID - the ID for this entity descriptor
    • getExtensions

      @Nullable Extensions getExtensions()
      Gets the Extensions child of this object.
      Returns:
      the Extensions child of this object
    • setExtensions

      void setExtensions(@Nullable Extensions extensions)
      Sets the Extensions child of this object.
      Parameters:
      extensions - the Extensions child of this object
    • getRoleDescriptors

      @Nonnull @Live List<RoleDescriptor> getRoleDescriptors()
      Gets all the role descriptors for this entity descriptor.
      Returns:
      the role descriptors for this entity descriptor
    • getRoleDescriptors

      @Nonnull @Live List<RoleDescriptor> getRoleDescriptors(@Nonnull 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

      @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 role
      supportedProtocol - the supported protocol
      Returns:
      the list of role descriptors that support the given protocol
    • getIDPSSODescriptor

      @Nullable IDPSSODescriptor getIDPSSODescriptor(@Nonnull @NotEmpty String supportedProtocol)
      Gets the first IDPSSODescriptor role descriptor for this entity that supports the given protocol.
      Parameters:
      supportedProtocol - protocol that must be supported
      Returns:
      the IDPSSODescriptor role descriptor
    • getSPSSODescriptor

      @Nullable SPSSODescriptor getSPSSODescriptor(@Nonnull @NotEmpty String supportedProtocol)
      Gets the first SPSSODescriptor role descriptor for this entity that supports the given protocol.
      Parameters:
      supportedProtocol - protocol that must be supported
      Returns:
      the SPSSODescriptor role descriptor
    • getAuthnAuthorityDescriptor

      @Nullable AuthnAuthorityDescriptor getAuthnAuthorityDescriptor(@Nonnull @NotEmpty String supportedProtocol)
      Gets the first AuthnAuthorityDescriptor role descriptor for this entity that supports the given protocol.
      Parameters:
      supportedProtocol - protocol that must be supported
      Returns:
      the AuthnAuthorityDescriptor role descriptor
    • getAttributeAuthorityDescriptor

      @Nullable AttributeAuthorityDescriptor getAttributeAuthorityDescriptor(@Nonnull @NotEmpty String supportedProtocol)
      Gets the first AttributeAuthorityDescriptor role descriptor for this entity that supports the given protocol.
      Parameters:
      supportedProtocol - protocol that must be supported
      Returns:
      the AttributeAuthorityDescriptor role descriptor
    • getPDPDescriptor

      @Nullable PDPDescriptor getPDPDescriptor(@Nonnull @NotEmpty String supportedProtocol)
      Gets the first PDPDescriptor role descriptor for this entity that supports the given protocol.
      Parameters:
      supportedProtocol - protocol that must be supported
      Returns:
      the PDPDescriptor role descriptor
    • getAffiliationDescriptor

      @Nullable AffiliationDescriptor getAffiliationDescriptor()
      Gets the affiliation descriptor for this entity.
      Returns:
      the affiliation descriptor for this entity
    • setAffiliationDescriptor

      void setAffiliationDescriptor(@Nullable AffiliationDescriptor descriptor)
      Sets the affiliation descriptor for this entity.
      Parameters:
      descriptor - the affiliation descriptor for this entity
    • getOrganization

      @Nullable Organization getOrganization()
      Gets the organization for this entity.
      Returns:
      the organization for this entity
    • setOrganization

      void setOrganization(@Nullable Organization organization)
      Sets the organization for this entity.
      Parameters:
      organization - the organization for this entity
    • getContactPersons

      @Nonnull @Live List<ContactPerson> getContactPersons()
      Get the contact people for this entity.
      Returns:
      the contact people for this entity
    • getAdditionalMetadataLocations

      @Nonnull @Live List<AdditionalMetadataLocation> getAdditionalMetadataLocations()
      Gets the additional metadata locations for this entity.
      Returns:
      the additional metadata locations for this entity