Skip to content

Commit c6093c5

Browse files
committed
Add @nonnull to PrfValues.first
1 parent 51d922d commit c6093c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,22 +768,18 @@ public static class Prf {
768768
@Value
769769
public static class PrfValues {
770770
/** */
771-
@JsonProperty public final ByteArray first; // REQUIRED
771+
@JsonProperty @NonNull public final ByteArray first;
772772

773773
@JsonProperty public final ByteArray second;
774774

775775
@JsonCreator
776776
public PrfValues(
777-
@JsonProperty("first") final ByteArray first,
777+
@JsonProperty("first") @NonNull final ByteArray first,
778778
@JsonProperty("second") final ByteArray second) {
779779
this.first = first;
780780
this.second = second;
781781
}
782782

783-
public Optional<ByteArray> getFirst() {
784-
return Optional.ofNullable(first);
785-
}
786-
787783
public Optional<ByteArray> getSecond() {
788784
return Optional.ofNullable(second);
789785
}

0 commit comments

Comments
 (0)