Class TestSources.StaticAttributeDefinition

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<net.shibboleth.idp.attribute.IdPAttribute>
net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
net.shibboleth.idp.saml.impl.testing.TestSources.StaticAttributeDefinition
All Implemented Interfaces:
net.shibboleth.idp.attribute.resolver.AttributeDefinition, net.shibboleth.idp.attribute.resolver.ResolverPlugin<net.shibboleth.idp.attribute.IdPAttribute>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, UnmodifiableComponent, DisposableBean
Enclosing class:
TestSources

private static class TestSources.StaticAttributeDefinition extends net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
A static AttributeDefinition for testing.
  • Field Details

    • value

      @NonnullAfterInit private net.shibboleth.idp.attribute.IdPAttribute value
      Static value returned by this definition.
  • Constructor Details

    • StaticAttributeDefinition

      private StaticAttributeDefinition()
  • Method Details

    • setValue

      public void setValue(@Nullable net.shibboleth.idp.attribute.IdPAttribute newAttribute)
      Set the attribute value we are returning.
      Parameters:
      newAttribute - what to set.
    • getValue

      @NonnullAfterInit public net.shibboleth.idp.attribute.IdPAttribute getValue()
      Return the static attribute we are returning.
      Returns:
      the attribute.
    • doAttributeDefinitionResolve

      @Nonnull protected net.shibboleth.idp.attribute.IdPAttribute doAttributeDefinitionResolve(@Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
      Specified by:
      doAttributeDefinitionResolve in class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
      Throws:
      net.shibboleth.idp.attribute.resolver.ResolutionException
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
      Throws:
      ComponentInitializationException