- 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 TypeMethodDescriptionvoidverify(@NotNull AuthenticationObject authenticationObject) Verifies the origin in the authentication ceremony.voidverify(@NotNull RegistrationObject registrationObject) Verifies the origin in the registration ceremony.
-
Method Details
-
verify
Verifies the origin in the registration ceremony.- Parameters:
registrationObject- the object containing registration data to verify- Throws:
BadOriginException- if the origin is invalid
-
verify
Verifies the origin in the authentication ceremony.- Parameters:
authenticationObject- the object containing authentication data to verify- Throws:
BadOriginException- if the origin is invalid
-