Class AddAuthenticatorAttachmentRequirement
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.impl.AbstractWebAuthnAction<WebAuthnRegistrationContext>
net.shibboleth.idp.plugin.authn.webauthn.admin.impl.AddAuthenticatorAttachmentRequirement
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class AddAuthenticatorAttachmentRequirement
extends AbstractWebAuthnAction<WebAuthnRegistrationContext>
Add an authenticator attachment requirement to the
context. Default is
null which translates to a requirement of 'any'.- Precondition:
ProfileRequestContext.getSubcontext(WebAuthnRegistrationContext.class) != null
- Postcondition:
WebAuthnRegistrationContext.getAuthenticatorAttachmentRequirement() != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,com.yubico.webauthn.data.AuthenticatorAttachment> A strategy to lookup the AuthenticatorAttachment requirement.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext, WebAuthnRegistrationContext context) Performs this WebAuthn authentication action using the supplied WebAuthn context.voidsetAuthenticatorAttachmentRequirement(String requirement) Set the authenticator attachment requirement.voidsetAuthenticatorAttachmentRequirementLookupStrategy(Function<ProfileRequestContext, com.yubico.webauthn.data.AuthenticatorAttachment> strategy) Set the lookup strategy to find the authenticator attachment requirement.Methods inherited from class net.shibboleth.idp.plugin.authn.webauthn.impl.AbstractWebAuthnAction
doExecute, doInitialize, doPreExecute, doPreExecute, enhancedCredentialRecord, getAaguidMetadata, getAaguidService, getAuthenticatorMetadata, getCredentialRepository, getFidoMetadataService, getWebAuthnClient, setAaguidService, setCredentialRepository, setFidoMetadataService, setWebAuthnClient, setWebAuthnContextLookupStrategyMethods 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
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
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
authenticatorAttachmentRequirementLookupStrategy
@Nonnull private Function<ProfileRequestContext,com.yubico.webauthn.data.AuthenticatorAttachment> authenticatorAttachmentRequirementLookupStrategyA strategy to lookup the AuthenticatorAttachment requirement. Default is null, so 'any'.
-
-
Constructor Details
-
AddAuthenticatorAttachmentRequirement
public AddAuthenticatorAttachmentRequirement()Constructor.
-
-
Method Details
-
setAuthenticatorAttachmentRequirement
Set the authenticator attachment requirement.- Parameters:
requirement- The authenticator attachment requirement to set.
-
setAuthenticatorAttachmentRequirementLookupStrategy
public void setAuthenticatorAttachmentRequirementLookupStrategy(@Nullable Function<ProfileRequestContext, com.yubico.webauthn.data.AuthenticatorAttachment> strategy) Set the lookup strategy to find the authenticator attachment requirement.- Parameters:
strategy- The authenticator attachment requirement lookup strategy to set.
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext, WebAuthnRegistrationContext context) Performs this WebAuthn authentication action using the supplied WebAuthn context. Implementations should override this method.- Overrides:
doExecutein classAbstractWebAuthnAction<WebAuthnRegistrationContext>- Parameters:
profileRequestContext- the current IdP profile request contextcontext- the WebAuthn context
-