File tree 2 files changed +11
-1
lines changed
main/java/com/yubico/webauthn
test/scala/com/yubico/webauthn
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -563,6 +563,16 @@ public static class RelyingPartyV2Builder<C extends CredentialRecord> {
563
563
Optional .empty ();
564
564
private @ NonNull Optional <AttestationTrustSource > attestationTrustSource = Optional .empty ();
565
565
566
+ public RelyingPartyV2Builder <C > origins (@ NonNull Set <String > origins ) {
567
+ this .origins = origins ;
568
+ return this ;
569
+ }
570
+
571
+ public RelyingPartyV2Builder <C > origins (Optional <Set <String >> origins ) {
572
+ this .origins = origins .orElse (null );
573
+ return this ;
574
+ }
575
+
566
576
/**
567
577
* The extension input to set for the <code>appid</code> and <code>appidExclude</code>
568
578
* extensions.
Original file line number Diff line number Diff line change @@ -987,7 +987,7 @@ class RelyingPartyStartOperationSpec
987
987
)
988
988
)
989
989
.preferredPubkeyParams(List (PublicKeyCredentialParameters .ES256 ).asJava)
990
- .origins(Set .empty.asJava)
990
+ .origins(Set .empty[ String ] .asJava)
991
991
if (usernameRepository) {
992
992
builder.usernameRepository(Helpers .UsernameRepository .withUsers(userId))
993
993
}
You can’t perform that action at this time.
0 commit comments