Skip to content

Commit f51c289

Browse files
committed
Add perCredMgmtRO and fix url to CTAP
1 parent 0452830 commit f51c289

File tree

1 file changed

+29
-20
lines changed

1 file changed

+29
-20
lines changed

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

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* supports the respective option.
1313
*
1414
* @see <a
15-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
15+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
1616
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
1717
*/
1818
@Value
@@ -21,139 +21,146 @@ public class SupportedCtapOptions {
2121

2222
/**
2323
* @see <a
24-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
24+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
2525
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
2626
*/
2727
boolean plat;
2828

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

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

4444
/**
4545
* @see <a
46-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
46+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
4747
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
4848
*/
4949
boolean up;
5050

5151
/**
5252
* @see <a
53-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
53+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
5454
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
5555
*/
5656
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
5757
boolean uv;
5858

5959
/**
6060
* @see <a
61-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
61+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
6262
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
6363
*/
6464
boolean pinUvAuthToken;
6565

6666
/**
6767
* @see <a
68-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
68+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
6969
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
7070
*/
7171
boolean noMcGaPermissionsWithClientPin;
7272

7373
/**
7474
* @see <a
75-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
75+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
7676
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
7777
*/
7878
boolean largeBlobs;
7979

8080
/**
8181
* @see <a
82-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
82+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
8383
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
8484
*/
8585
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
8686
boolean ep;
8787

8888
/**
8989
* @see <a
90-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
90+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
9191
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
9292
*/
9393
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
9494
boolean bioEnroll;
9595

9696
/**
9797
* @see <a
98-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
98+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
9999
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
100100
*/
101101
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
102102
boolean userVerificationMgmtPreview;
103103

104104
/**
105105
* @see <a
106-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
106+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
107107
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
108108
*/
109109
boolean uvBioEnroll;
110110

111111
/**
112112
* @see <a
113-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
113+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
114114
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
115115
*/
116116
boolean authnrCfg;
117117

118118
/**
119119
* @see <a
120-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
120+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
121121
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
122122
*/
123123
boolean uvAcfg;
124124

125125
/**
126126
* @see <a
127-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
127+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
128128
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
129129
*/
130130
boolean credMgmt;
131131

132132
/**
133133
* @see <a
134-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
134+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
135+
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
136+
*/
137+
boolean perCredMgmtRO;
138+
139+
/**
140+
* @see <a
141+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
135142
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
136143
*/
137144
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
138145
boolean credentialMgmtPreview;
139146

140147
/**
141148
* @see <a
142-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
149+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
143150
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
144151
*/
145152
boolean setMinPINLength;
146153

147154
/**
148155
* @see <a
149-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
156+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
150157
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
151158
*/
152159
boolean makeCredUvNotRqd;
153160

154161
/**
155162
* @see <a
156-
* href="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#authenticatorGetInfo">Client
163+
* href="https://fidoalliance.org/specs/fido-v2.2-ps-20250228/fido-client-to-authenticator-protocol-v2.2-ps-20250228.html#authenticatorGetInfo">Client
157164
* to Authenticator Protocol (CTAP) §6.4. authenticatorGetInfo (0x04)</a>
158165
*/
159166
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
@@ -176,6 +183,7 @@ private SupportedCtapOptions(
176183
@JsonAlias("config") @JsonProperty("authnrCfg") Boolean authnrCfg,
177184
@JsonProperty("uvAcfg") Boolean uvAcfg,
178185
@JsonProperty("credMgmt") Boolean credMgmt,
186+
@JsonProperty("perCredMgmtRO") Boolean perCredMgmtRO,
179187
@JsonProperty("credentialMgmtPreview") Boolean credentialMgmtPreview,
180188
@JsonProperty("setMinPINLength") Boolean setMinPINLength,
181189
@JsonProperty("makeCredUvNotRqd") Boolean makeCredUvNotRqd,
@@ -195,6 +203,7 @@ private SupportedCtapOptions(
195203
this.authnrCfg = Boolean.TRUE.equals(authnrCfg);
196204
this.uvAcfg = Boolean.TRUE.equals(uvAcfg);
197205
this.credMgmt = Boolean.TRUE.equals(credMgmt);
206+
this.perCredMgmtRO = Boolean.TRUE.equals(perCredMgmtRO);
198207
this.credentialMgmtPreview = Boolean.TRUE.equals(credentialMgmtPreview);
199208
this.setMinPINLength = Boolean.TRUE.equals(setMinPINLength);
200209
this.makeCredUvNotRqd = Boolean.TRUE.equals(makeCredUvNotRqd);

0 commit comments

Comments
 (0)