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 Summary
FieldsModifier and TypeFieldDescriptionprivate net.shibboleth.idp.attribute.IdPAttributeStatic value returned by this definition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.shibboleth.idp.attribute.IdPAttributedoAttributeDefinitionResolve(net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext, net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) protected voidnet.shibboleth.idp.attribute.IdPAttributegetValue()Return the static attribute we are returning.voidsetValue(net.shibboleth.idp.attribute.IdPAttribute newAttribute) Set the attribute value we are returning.Methods inherited from class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
doResolve, getLogPrefix, isDependencyOnly, isPreRequested, setDependencyOnly, setPreRequestedMethods inherited from class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin
doDestroy, equals, getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setAttributeDependencies, setDataConnectorDependencies, setPropagateResolutionExceptionsMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface net.shibboleth.idp.attribute.resolver.ResolverPlugin
getActivationCondition, getAttributeDependencies, getDataConnectorDependencies, isPropagateResolutionExceptions, resolve
-
Field Details
-
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
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:
doAttributeDefinitionResolvein classnet.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition- Throws:
net.shibboleth.idp.attribute.resolver.ResolutionException
-
doInitialize
- Overrides:
doInitializein classnet.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition- Throws:
ComponentInitializationException
-