Interface OriginVerifier

All Known Implementing Classes:
OriginVerifierImpl

public interface OriginVerifier
Handler interface to verify the given Origin instance. This verifier checks that the origin provided in the client data matches the expected origin for the Relying Party during WebAuthn registration and authentication ceremonies.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    verify(@NotNull AuthenticationObject authenticationObject)
    Verifies the origin in the authentication ceremony.
    void
    verify(@NotNull RegistrationObject registrationObject)
    Verifies the origin in the registration ceremony.
  • Method Details

    • verify

      void verify(@NotNull @NotNull RegistrationObject registrationObject)
      Verifies the origin in the registration ceremony.
      Parameters:
      registrationObject - the object containing registration data to verify
      Throws:
      BadOriginException - if the origin is invalid
    • verify

      void verify(@NotNull @NotNull AuthenticationObject authenticationObject)
      Verifies the origin in the authentication ceremony.
      Parameters:
      authenticationObject - the object containing authentication data to verify
      Throws:
      BadOriginException - if the origin is invalid