Class WebauthnServerServiceImpl

java.lang.Object
com.jadaptive.webauthn.server.service.WebauthnServerServiceImpl
All Implemented Interfaces:
WebauthnServerService

@Service public class WebauthnServerServiceImpl extends Object implements WebauthnServerService
  • Constructor Details

    • WebauthnServerServiceImpl

      public WebauthnServerServiceImpl()
  • Method Details

    • startRegistration

      public RegistrationRequest startRegistration(User user, Optional<Validator> validator)
      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:
      startRegistration in interface WebauthnServerService
    • 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:
      completeRegistration in interface WebauthnServerService
    • startAuthentication

      public AuthenticationRequest startAuthentication(String username, Optional<Validator> validator)
      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:
      startAuthentication in interface WebauthnServerService
    • 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:
      completeAuthentication in interface WebauthnServerService