Skip to content

Commit ad36a8b

Browse files
committed
Remove redundant builder defaults
1 parent 5bceb93 commit ad36a8b

File tree

1 file changed

+19
-28
lines changed

1 file changed

+19
-28
lines changed

webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/SupportedCtapOptions.java

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,151 +24,142 @@ public class SupportedCtapOptions {
2424
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
2525
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
2626
*/
27-
@Builder.Default boolean plat = false;
27+
boolean plat;
2828

2929
/**
3030
* @see <a
3131
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
3232
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
3333
*/
34-
@Builder.Default boolean rk = false;
34+
boolean rk;
3535

3636
/**
3737
* @see <a
3838
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
3939
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
4040
*/
4141
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
42-
@Builder.Default
43-
boolean clientPin = false;
42+
boolean clientPin;
4443

4544
/**
4645
* @see <a
4746
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
4847
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
4948
*/
50-
@Builder.Default boolean up = false;
49+
boolean up;
5150

5251
/**
5352
* @see <a
5453
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
5554
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
5655
*/
5756
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
58-
@Builder.Default
59-
boolean uv = false;
57+
boolean uv;
6058

6159
/**
6260
* @see <a
6361
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
6462
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
6563
*/
6664
@JsonAlias("uvToken")
67-
@Builder.Default
68-
boolean pinUvAuthToken = false;
65+
boolean pinUvAuthToken;
6966

7067
/**
7168
* @see <a
7269
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
7370
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
7471
*/
75-
@Builder.Default boolean noMcGaPermissionsWithClientPin = false;
72+
boolean noMcGaPermissionsWithClientPin;
7673

7774
/**
7875
* @see <a
7976
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
8077
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
8178
*/
82-
@Builder.Default boolean largeBlobs = false;
79+
boolean largeBlobs;
8380

8481
/**
8582
* @see <a
8683
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
8784
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
8885
*/
8986
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
90-
@Builder.Default
91-
boolean ep = false;
87+
boolean ep;
9288

9389
/**
9490
* @see <a
9591
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
9692
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
9793
*/
9894
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
99-
@Builder.Default
100-
boolean bioEnroll = false;
95+
boolean bioEnroll;
10196

10297
/**
10398
* @see <a
10499
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
105100
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
106101
*/
107102
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
108-
@Builder.Default
109-
boolean userVerificationMgmtPreview = false;
103+
boolean userVerificationMgmtPreview;
110104

111105
/**
112106
* @see <a
113107
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
114108
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
115109
*/
116-
@Builder.Default boolean uvBioEnroll = false;
110+
boolean uvBioEnroll;
117111

118112
/**
119113
* @see <a
120114
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
121115
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
122116
*/
123117
@JsonAlias("config")
124-
@Builder.Default
125-
boolean authnrCfg = false;
118+
boolean authnrCfg;
126119

127120
/**
128121
* @see <a
129122
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
130123
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
131124
*/
132-
@Builder.Default boolean uvAcfg = false;
125+
boolean uvAcfg;
133126

134127
/**
135128
* @see <a
136129
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
137130
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
138131
*/
139-
@Builder.Default boolean credMgmt = false;
132+
boolean credMgmt;
140133

141134
/**
142135
* @see <a
143136
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
144137
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
145138
*/
146139
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
147-
@Builder.Default
148-
boolean credentialMgmtPreview = false;
140+
boolean credentialMgmtPreview;
149141

150142
/**
151143
* @see <a
152144
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
153145
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
154146
*/
155-
@Builder.Default boolean setMinPINLength = false;
147+
boolean setMinPINLength;
156148

157149
/**
158150
* @see <a
159151
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
160152
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
161153
*/
162-
@Builder.Default boolean makeCredUvNotRqd = false;
154+
boolean makeCredUvNotRqd;
163155

164156
/**
165157
* @see <a
166158
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
167159
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
168160
*/
169161
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
170-
@Builder.Default
171-
boolean alwaysUv = false;
162+
boolean alwaysUv;
172163

173164
@JsonCreator
174165
private SupportedCtapOptions(

0 commit comments

Comments
 (0)