Class CreatePasswordlessCookie
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.duo.impl.CreatePasswordlessCookie
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Finalization action that creates the passwordless guard cookkie based on the
canonical principal name after the flow completes.
A form field indicates whether an opt-in or opt-out is to be created.
- Since:
- 2.1.0
- Event:
EventIds.PROCEED_EVENT_ID,AuthnEventIds.INVALID_SUBJECT_C14N_CTX- Precondition:
ProfileRequestContext.ensureSubcontext(SubjectCanonicalizationContext.class).getPrincipalName() != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PasswordlessCookieManagerCookie manager to use.private final org.slf4j.LoggerClass logger.static final StringName of form field signalling yes/no to opt-in. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidvoidSetsPasswordlessCookieManagerto use.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, 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
-
OPTIN_FIELD_NAME
Name of form field signalling yes/no to opt-in.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
cookieManager
Cookie manager to use.
-
-
Constructor Details
-
CreatePasswordlessCookie
public CreatePasswordlessCookie()
-
-
Method Details
-
setCookieManager
SetsPasswordlessCookieManagerto use.- Parameters:
manager- cookie manager
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-