Class GenerateIdStage

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
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 GenerateIdStage extends AbstractIteratingStage<Element>
A stage that populates the ID attribute of an EntitiesDescriptor or EntityDescriptor.

By default, the stage will use a Type4UUIDIdentifierGenerationStrategy to generate identifiers.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private net.shibboleth.shared.security.IdentifierGenerationStrategy
    Strategy used to generate identifiers.
    static final QName
    QName of the ID attribute added to the descriptor.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Processes a given Item.
    protected void
     
    net.shibboleth.shared.security.IdentifierGenerationStrategy
    Gets the IdentifierGenerationStrategy being used.
    void
    setGenerator(net.shibboleth.shared.security.IdentifierGenerationStrategy newGenerator)
    Sets the IdentifierGenerationStrategy to use.

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

    doExecute

    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

    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

    • ID_ATTRIB

      @Nonnull public static final QName ID_ATTRIB
      QName of the ID attribute added to the descriptor.
    • generator

      @NonnullAfterInit private net.shibboleth.shared.security.IdentifierGenerationStrategy generator
      Strategy used to generate identifiers.
  • Constructor Details

    • GenerateIdStage

      public GenerateIdStage()
      Constructor.
  • Method Details

    • getGenerator

      @NonnullAfterInit public net.shibboleth.shared.security.IdentifierGenerationStrategy getGenerator()
      Gets the IdentifierGenerationStrategy being used.
      Returns:
      the IdentifierGenerationStrategy being used
    • setGenerator

      public void setGenerator(@Nonnull net.shibboleth.shared.security.IdentifierGenerationStrategy newGenerator)
      Sets the IdentifierGenerationStrategy to use.
      Parameters:
      newGenerator - the IdentifierGenerationStrategy to use
    • doExecute

      protected void doExecute(@Nonnull Item<Element> item) throws StageProcessingException
      Description copied from class: AbstractIteratingStage
      Processes a given Item.
      Specified by:
      doExecute in class AbstractIteratingStage<Element>
      Parameters:
      item - Item on which to operate
      Throws:
      StageProcessingException - thrown if there is a problem with the stage processing
    • doInitialize

      protected void doInitialize() throws net.shibboleth.shared.component.ComponentInitializationException
      Overrides:
      doInitialize in class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
      Throws:
      net.shibboleth.shared.component.ComponentInitializationException