Class PopulateInlineEnrolmentContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.authn.webauthn.admin.impl.PopulateInlineEnrolmentContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Populate the
InlineEnrolmentContext from the HTTP referer header in the
HTTP request iff the registration query parameter contains 'inline'.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Is inline enrolment enabled? Enabled by default.Strategy used to locate or create theInlineEnrolmentContextto populate.private final org.slf4j.LoggerClass logger.private static final StringThe name of the query parameter that contains a signal that the request was for inline enrolment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) voidsetEnabled(boolean flag) Set if inline enrolment should be enabled.voidsetEnabled(Predicate<ProfileRequestContext> predicate) Set if inline enrolment should be enabled.voidsetInlineEnrolementContextCreationStrategy(Function<ProfileRequestContext, InlineEnrolmentContext> strategy) Set the strategy used to locate or create theInlineEnrolmentContext.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
REG_QUERY_PARAM
The name of the query parameter that contains a signal that the request was for inline enrolment.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
enabled
Is inline enrolment enabled? Enabled by default. -
inlineEnrolementContextCreationStrategy
@Nonnull private Function<ProfileRequestContext,InlineEnrolmentContext> inlineEnrolementContextCreationStrategyStrategy used to locate or create theInlineEnrolmentContextto populate.
-
-
Constructor Details
-
PopulateInlineEnrolmentContext
public PopulateInlineEnrolmentContext()Constructor.
-
-
Method Details
-
setEnabled
Set if inline enrolment should be enabled.- Parameters:
predicate- the predicate to check if inline enrolment is enabled.
-
setEnabled
public void setEnabled(boolean flag) Set if inline enrolment should be enabled.- Parameters:
flag- is inline enrolment enabled.
-
setInlineEnrolementContextCreationStrategy
public void setInlineEnrolementContextCreationStrategy(@Nonnull Function<ProfileRequestContext, InlineEnrolmentContext> strategy) Set the strategy used to locate or create theInlineEnrolmentContext.- Parameters:
strategy- The strategy to set.
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-