Skip to content

Commit 37010ca

Browse files
committed
Reorder getCredProps methods together in RegistrationExtensionInputs
1 parent ea13797 commit 37010ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ public boolean getCredProps() {
118118
return credProps != null && credProps;
119119
}
120120

121+
/** For JSON serialization, to omit false values. */
122+
@JsonProperty("credProps")
123+
private Boolean getCredPropsJson() {
124+
return getCredProps() ? true : null;
125+
}
126+
121127
/**
122128
* @return The Credential Protection (<code>credProtect</code>) extension input, if set.
123129
* @since 2.7.0
@@ -131,12 +137,6 @@ public Optional<Extensions.CredentialProtection.CredentialProtectionInput> getCr
131137
return Optional.ofNullable(credProtect);
132138
}
133139

134-
/** For JSON serialization, to omit false values. */
135-
@JsonProperty("credProps")
136-
private Boolean getCredPropsJson() {
137-
return getCredProps() ? true : null;
138-
}
139-
140140
/**
141141
* @return The value of the Large blob storage extension (<code>largeBlob</code>) input if
142142
* configured, empty otherwise.

0 commit comments

Comments
 (0)