Class SubjectScriptContextExtender
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.authn.context.impl.SubjectScriptContextExtender
- All Implemented Interfaces:
FilterScriptContextExtender,ResolverScriptContextExtender,Component,DestructableComponent,InitializableComponent,ScriptContextExtender
public class SubjectScriptContextExtender
extends AbstractInitializableComponent
implements ResolverScriptContextExtender, FilterScriptContextExtender
An extender that supplements an IdP
ScriptContext with Subject information.- Since:
- 5.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,SubjectContext> Strategy used to locate theSubjectContextto use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextendContext(ScriptContext scriptContext) voidSet the strategy used to locate theSubjectContext.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
subjectContextLookupStrategy
Strategy used to locate theSubjectContextto use.
-
-
Constructor Details
-
SubjectScriptContextExtender
public SubjectScriptContextExtender()Constructor.
-
-
Method Details
-
setSubjectContextLookupStrategy
public void setSubjectContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SubjectContext> strategy) Set the strategy used to locate theSubjectContext.- Parameters:
strategy- strategy used to locate theSubjectContext
-
extendContext
- Specified by:
extendContextin interfaceScriptContextExtender
-