Make createWebAuthnRegistrationManager protected to allow cutomizations in subclasses (#33639)

closes #33678

Signed-off-by: Dominik Schlosser <dominik.schlosser@gmail.com>
This commit is contained in:
Dominik Schlosser 2024-10-08 10:35:27 +02:00 committed by GitHub
parent 611e6d102e
commit 2c9e279213
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,13 @@ public class WebAuthnRegister implements RequiredActionProvider, CredentialRegis
}
}
private WebAuthnRegistrationManager createWebAuthnRegistrationManager() {
/**
* Create WebAuthnRegistrationManager instance
* Can be overridden in subclasses to customize the used attestation validators
*
* @return webauthn4j WebAuthnRegistrationManager instance
*/
protected WebAuthnRegistrationManager createWebAuthnRegistrationManager() {
return new WebAuthnRegistrationManager(
Arrays.asList(
new NoneAttestationStatementValidator(),