Skip to content

Commit 87ca3e6

Browse files
committed
Delete overloaded PRF input builder methods
The factory functions on PrfRegistrationInput and PrfAuthenticationInput should be enough.
1 parent 109521e commit 87ca3e6

File tree

2 files changed

+4
-45
lines changed

2 files changed

+4
-45
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/data/AssertionExtensionInputs.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import com.yubico.webauthn.StartAssertionOptions;
3232
import com.yubico.webauthn.extension.appid.AppId;
3333
import java.util.HashSet;
34-
import java.util.Map;
3534
import java.util.Optional;
3635
import java.util.Set;
3736
import lombok.Builder;
@@ -180,28 +179,6 @@ public AssertionExtensionInputsBuilder largeBlob(
180179
return this;
181180
}
182181

183-
/**
184-
* Enable the Pseudo-random function extension (<code>prf</code>).
185-
*
186-
* <p>Alias of <code>prf(new Extensions.Prf.PrfRegistrationInput(eval))
187-
* </code>.
188-
*
189-
* @param eval an {@link Extensions.Prf.PrfValues} value to set as the <code>eval</code>
190-
* attribute of the <code>prf</code> extension input.
191-
* @see #prf(Extensions.Prf.PrfRegistrationInput)
192-
* @see <a
193-
* href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-large-blob-extension">§10.5.
194-
* Large blob storage extension (largeBlob)</a>
195-
*/
196-
public AssertionExtensionInputsBuilder prf(
197-
Extensions.Prf.PrfValues eval,
198-
Map<PublicKeyCredentialDescriptor, Extensions.Prf.PrfValues> evalByCredential) {
199-
this.prf =
200-
Extensions.Prf.PrfAuthenticationInput.evalByCredentialWithFallback(
201-
evalByCredential, eval);
202-
return this;
203-
}
204-
205182
/**
206183
* Enable the Pseudo-random function extension (<code>prf</code>).
207184
*

webauthn-server-core/src/main/java/com/yubico/webauthn/data/RegistrationExtensionInputs.java

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -353,28 +353,10 @@ public RegistrationExtensionInputsBuilder largeBlob(
353353
/**
354354
* Enable the Pseudo-random function extension (<code>prf</code>).
355355
*
356-
* <p>Alias of <code>prf(new Extensions.Prf.PrfRegistrationInput(eval))
357-
* </code>.
358-
*
359-
* @param eval an {@link Extensions.Prf.PrfValues} value to set as the <code>eval</code>
360-
* attribute of the <code>prf</code> extension input.
361-
* @see #prf(Extensions.Prf.PrfRegistrationInput)
362-
* @see <a
363-
* href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-large-blob-extension">§10.5.
364-
* Large blob storage extension (largeBlob)</a>
365-
*/
366-
public RegistrationExtensionInputsBuilder prf(Extensions.Prf.PrfValues eval) {
367-
this.prf = Extensions.Prf.PrfRegistrationInput.eval(eval);
368-
return this;
369-
}
370-
371-
/**
372-
* Enable the Pseudo-random function extension (<code>prf</code>).
373-
*
374-
* @see #prf(Extensions.Prf.PrfValues)
375-
* @see <a
376-
* href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-large-blob-extension">§10.5.
377-
* Large blob storage extension (largeBlob)</a>
356+
* @see Extensions.Prf.PrfRegistrationInput#enable()
357+
* @see Extensions.Prf.PrfRegistrationInput#eval(Extensions.Prf.PrfValues)
358+
* @see <a href="https://www.w3.org/TR/2025/WD-webauthn-3-20250127/#prf-extension">§10.5.
359+
* Pseudo-random function extension (prf)</a>
378360
*/
379361
public RegistrationExtensionInputsBuilder prf(Extensions.Prf.PrfRegistrationInput prf) {
380362
this.prf = prf;

0 commit comments

Comments
 (0)