Class AbstractAttributeDefinitionTest.MockAttributeDefinition

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

private static final class AbstractAttributeDefinitionTest.MockAttributeDefinition extends net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
This class implements the minimal level of functionality and is meant only as a means of testing the abstract AttributeDefinition.
  • Field Details

    • staticAttribute

      @Nullable private IdPAttribute staticAttribute
      Static attribute value returned from resolution.
  • Constructor Details

    • MockAttributeDefinition

      public MockAttributeDefinition(@Nonnull @NotEmpty String id, @Nullable IdPAttribute attribute)
      Constructor.
      Parameters:
      id - id of the attribute definition, never null or empty
      attribute - value returned from the resolution of this attribute, may be null
  • Method Details

    • doAttributeDefinitionResolve

      @Nullable protected 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