|
1 | 1 | /* |
2 | | - * Copyright (C) 2018-2024 Authlete, Inc. |
| 2 | + * Copyright (C) 2018-2025 Authlete, Inc. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
124 | 124 | */ |
125 | 125 | public class BackchannelAuthenticationRequest implements Serializable |
126 | 126 | { |
127 | | - private static final long serialVersionUID = 2L; |
| 127 | + private static final long serialVersionUID = 3L; |
128 | 128 |
|
129 | 129 |
|
130 | 130 | /** |
@@ -181,6 +181,15 @@ public class BackchannelAuthenticationRequest implements Serializable |
181 | 181 | private String oauthClientAttestationPop; |
182 | 182 |
|
183 | 183 |
|
| 184 | + /** |
| 185 | + * Options for CIMD processing. |
| 186 | + * |
| 187 | + * @since 4.30 |
| 188 | + * @since Authlete 3.0.22 |
| 189 | + */ |
| 190 | + private CimdOptions cimdOptions; |
| 191 | + |
| 192 | + |
184 | 193 | /** |
185 | 194 | * Get the value of {@code parameters} which are the request parameters |
186 | 195 | * that the backchannel authentication endpoint of the OpenID provider |
@@ -446,4 +455,49 @@ public BackchannelAuthenticationRequest setOauthClientAttestationPop(String jwt) |
446 | 455 |
|
447 | 456 | return this; |
448 | 457 | } |
| 458 | + |
| 459 | + |
| 460 | + /** |
| 461 | + * Get options for <a href= |
| 462 | + * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
| 463 | + * >CIMD</a> processing. |
| 464 | + * |
| 465 | + * @return |
| 466 | + * Options for CIMD processing. |
| 467 | + * |
| 468 | + * @since 4.30 |
| 469 | + * @since Authlete 3.0.22 |
| 470 | + * |
| 471 | + * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
| 472 | + * OAuth Client ID Metadata Document</a> |
| 473 | + */ |
| 474 | + public CimdOptions getCimdOptions() |
| 475 | + { |
| 476 | + return cimdOptions; |
| 477 | + } |
| 478 | + |
| 479 | + |
| 480 | + /** |
| 481 | + * Set options for <a href= |
| 482 | + * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
| 483 | + * >CIMD</a> processing. |
| 484 | + * |
| 485 | + * @param options |
| 486 | + * Options for CIMD processing. |
| 487 | + * |
| 488 | + * @return |
| 489 | + * {@code this} object. |
| 490 | + * |
| 491 | + * @since 4.30 |
| 492 | + * @since Authlete 3.0.22 |
| 493 | + * |
| 494 | + * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
| 495 | + * OAuth Client ID Metadata Document</a> |
| 496 | + */ |
| 497 | + public BackchannelAuthenticationRequest setCimdOptions(CimdOptions options) |
| 498 | + { |
| 499 | + this.cimdOptions = options; |
| 500 | + |
| 501 | + return this; |
| 502 | + } |
449 | 503 | } |
0 commit comments