diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java index f2d23ff01..251bd643b 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java @@ -598,7 +598,7 @@ public class Step2 { * credentialRepository} is a required parameter. * * @see RelyingPartyBuilder#credentialRepository(CredentialRepository) - * @see #credentialRepository(CredentialRepositoryV2) + * @see #credentialRepositoryV2(CredentialRepositoryV2) */ public RelyingPartyBuilder credentialRepository(CredentialRepository credentialRepository) { return builder.credentialRepository(credentialRepository); @@ -611,7 +611,7 @@ public RelyingPartyBuilder credentialRepository(CredentialRepository credentialR * @see #credentialRepository(CredentialRepository) */ public - RelyingPartyV2.RelyingPartyV2Builder credentialRepository( + RelyingPartyV2.RelyingPartyV2Builder credentialRepositoryV2( CredentialRepositoryV2 credentialRepository) { return RelyingPartyV2.builder(builder.identity, credentialRepository); } diff --git a/webauthn-server-core/src/test/java/com/yubico/webauthn/RelyingPartyTest.java b/webauthn-server-core/src/test/java/com/yubico/webauthn/RelyingPartyTest.java index c91d2a76d..ed87a720a 100644 --- a/webauthn-server-core/src/test/java/com/yubico/webauthn/RelyingPartyTest.java +++ b/webauthn-server-core/src/test/java/com/yubico/webauthn/RelyingPartyTest.java @@ -64,11 +64,9 @@ public TrustRootsResult findTrustRoots( } }; - CredentialRepository credentialRepository = null; - RelyingParty.builder() .identity(null) - .credentialRepository(credentialRepository) + .credentialRepository(null) .origins(Collections.emptySet()) .appId(new AppId("https://example.com")) .appId(Optional.of(new AppId("https://example.com"))) diff --git a/webauthn-server-demo/src/main/java/demo/webauthn/WebAuthnServer.java b/webauthn-server-demo/src/main/java/demo/webauthn/WebAuthnServer.java index bc7e8d2e1..b4f9165e1 100644 --- a/webauthn-server-demo/src/main/java/demo/webauthn/WebAuthnServer.java +++ b/webauthn-server-demo/src/main/java/demo/webauthn/WebAuthnServer.java @@ -191,7 +191,7 @@ public WebAuthnServer( rp = RelyingParty.builder() .identity(rpIdentity) - .credentialRepository(this.userStorage) + .credentialRepositoryV2(this.userStorage) .usernameRepository(this.userStorage) .origins(origins) .attestationConveyancePreference(Optional.of(AttestationConveyancePreference.DIRECT))