Class EntitiesDescriptorDisassemblerStage

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.AbstractStage<Element>
net.shibboleth.metadata.dom.saml.EntitiesDescriptorDisassemblerStage
All Implemented Interfaces:
Stage<Element>, net.shibboleth.shared.component.Component, net.shibboleth.shared.component.DestructableComponent, net.shibboleth.shared.component.IdentifiableComponent, net.shibboleth.shared.component.IdentifiedComponent, net.shibboleth.shared.component.InitializableComponent

@ThreadSafe public class EntitiesDescriptorDisassemblerStage extends AbstractStage<Element>
A pipeline stage that replaces any SAML EntitiesDescriptor found in the Item collection with the EntityDescriptor elements contained therein.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
    Class logger.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Performs the stage processing on the given Item collection.
    protected void
    processEntitiesDescriptor(List<Item<Element>> items, Element entitiesDescriptor)
    Processes an EntitiesDescriptor element.
    protected void
    processEntityDescriptor(List<Item<Element>> items, Element entityDescriptor)
    Processes an EntityDescriptor element.

    Methods inherited from class net.shibboleth.metadata.pipeline.AbstractStage

    execute, getCollectionPredicate, setCollectionPredicate

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent

    setId

    Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent

    doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException

    Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent

    checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitialized

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.shibboleth.shared.component.DestructableComponent

    destroy, isDestroyed

    Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent

    getId

    Methods inherited from interface net.shibboleth.shared.component.InitializableComponent

    initialize, isInitialized
  • Field Details

    • LOG

      @Nonnull private static final org.slf4j.Logger LOG
      Class logger.
  • Constructor Details

    • EntitiesDescriptorDisassemblerStage

      public EntitiesDescriptorDisassemblerStage()
  • Method Details

    • doExecute

      protected void doExecute(@Nonnull @NonnullElements List<Item<Element>> items)
      Description copied from class: AbstractStage
      Performs the stage processing on the given Item collection.

      The stage is guaranteed to be have been initialized and not destroyed when this is invoked.

      Specified by:
      doExecute in class AbstractStage<Element>
      Parameters:
      items - collection to be processed
    • processEntitiesDescriptor

      protected void processEntitiesDescriptor(@Nonnull @NonnullElements List<Item<Element>> items, @Nonnull Element entitiesDescriptor)
      Processes an EntitiesDescriptor element. All child EntityDescriptor elements are processed and EntitiesDescriptors are run back through this method.
      Parameters:
      items - collection to which EntityDescriptor metadata elements are added
      entitiesDescriptor - the EntitiesDescriptor to break down
    • processEntityDescriptor

      protected void processEntityDescriptor(@Nonnull @NonnullElements List<Item<Element>> items, @Nonnull Element entityDescriptor)
      Processes an EntityDescriptor element. Creates a DOMElementItem element and adds it to the item collections.
      Parameters:
      items - collection to which metadata is added
      entityDescriptor - entity descriptor to add to the item collection