Class WebauthnServerServiceImpl
java.lang.Object
com.jadaptive.webauthn.server.service.WebauthnServerServiceImpl
- All Implemented Interfaces:
WebauthnServerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.yubico.webauthn.AssertionResultcompleteAuthentication(AuthenticationResponse assertionResponse, Optional<Validator> validator) Completes a webauthn authentication process.voidcompleteRegistration(RegistrationResponse registrationResponse, Optional<Validator> validator) Completes a webauthn registration process.startAuthentication(String username, Optional<Validator> validator) Starts a webauthn authentication process.startRegistration(User user, Optional<Validator> validator) Starts a webauthn registration process.
-
Constructor Details
-
WebauthnServerServiceImpl
public WebauthnServerServiceImpl()
-
-
Method Details
-
startRegistration
Starts a webauthn registration process. Creates a request id which is mapped to a registration request and stored in cache store. Before creating a registration request it performs validation.- Specified by:
startRegistrationin interfaceWebauthnServerService
-
completeRegistration
public void completeRegistration(RegistrationResponse registrationResponse, Optional<Validator> validator) Completes a webauthn registration process. Pulls back the registration objected corresponding to request id. Using requested registration object instance and registration response object it completes the registration process. Before completing a registration request it performs validation.- Specified by:
completeRegistrationin interfaceWebauthnServerService
-
startAuthentication
Starts a webauthn authentication process. Creates a request id which is mapped to a authentication request and stored in cache store. Before creating an authentication request it performs validation.- Specified by:
startAuthenticationin interfaceWebauthnServerService
-
completeAuthentication
public com.yubico.webauthn.AssertionResult completeAuthentication(AuthenticationResponse assertionResponse, Optional<Validator> validator) Completes a webauthn authentication process. Pulls back the authentication object corresponding to request id. Using requested authentication object instance and assertion response object it completes the registration process. Before completing an authentication request it performs validation.- Specified by:
completeAuthenticationin interfaceWebauthnServerService
-