Class ExtractPublicKeyCredentialAssertionFromFormRequest
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<WebAuthnAuthenticationContext>
net.shibboleth.idp.plugin.authn.webauthn.impl.ExtractPublicKeyCredentialAssertionFromFormRequest
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class ExtractPublicKeyCredentialAssertionFromFormRequest
extends AbstractWebAuthnAction<WebAuthnAuthenticationContext>
An action that extracts the PublicKeyCredential containing the authenticator assertion response from the
incoming HTTP request.
- Event:
AuthnEventIds.NO_CREDENTIALS- Precondition:
ProfileRequestContext.getSubcontext(WebAuthnAuthenticationContext.class) != null
- Postcondition:
WebAuthnAuthenticationContext.getAuthenticatorAssertionResponse() == null
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault public key credential assertion parameter name.private final org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperJSON object mapper.private StringName of public key credential with the assertion response parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext, WebAuthnAuthenticationContext context) Performs this WebAuthn authentication action using the supplied WebAuthn context.protected voidvoidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSONObjectMapper.voidSet the name of the public key credential assertion parameter to extract.Methods inherited from class net.shibboleth.idp.plugin.authn.webauthn.impl.AbstractWebAuthnAction
doExecute, 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
-
DEFAULT_PARAMETER_NAME
Default public key credential assertion parameter name.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
publicKeyCredentialAssertionParameterName
Name of public key credential with the assertion response parameter. -
objectMapper
JSON object mapper.
-
-
Constructor Details
-
ExtractPublicKeyCredentialAssertionFromFormRequest
public ExtractPublicKeyCredentialAssertionFromFormRequest()Constructor.
-
-
Method Details
-
doInitialize
Description copied from class:AbstractWebAuthnAction- Overrides:
doInitializein classAbstractWebAuthnAction<WebAuthnAuthenticationContext>- Throws:
ComponentInitializationException
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSONObjectMapper.- Parameters:
mapper- object mapper
-
setPublicKeyCredentialAssertionParameterName
Set the name of the public key credential assertion parameter to extract.- Parameters:
field- the field name
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull WebAuthnAuthenticationContext context) Description copied from class:AbstractWebAuthnActionPerforms this WebAuthn authentication action using the supplied WebAuthn context. Implementations should override this method.- Overrides:
doExecutein classAbstractWebAuthnAction<WebAuthnAuthenticationContext>- Parameters:
profileRequestContext- the current IdP profile request contextcontext- the WebAuthn context
-