Skip to content

Commit e03e983

Browse files
feat: CIMD Options (#149)
1 parent fc40115 commit e03e983

8 files changed

Lines changed: 1096 additions & 9 deletions

File tree

CHANGES.ja.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
11
変更点
22
======
33

4+
- `AuthorizationRequest` クラス
5+
* `getCimdOptions()` メソッドを追加。
6+
* `setCimdOptions(CimdOptions)` メソッドを追加。
7+
8+
- `BackchannelAuthenticationRequest` クラス
9+
* `getCimdOptions()` メソッドを追加。
10+
* `setCimdOptions(CimdOptions)` メソッドを追加。
11+
12+
- `DeviceAuthorizationRequest` クラス
13+
* `getCimdOptions()` メソッドを追加。
14+
* `setCimdOptions(CimdOptions)` メソッドを追加。
15+
16+
- `Service` クラス
17+
* `isCimdWhitelistEnabled()` メソッドを追加。
18+
* `setCimdWhitelistEnabled(boolean)` メソッドを追加。
19+
* `getCimdWhitelist()` メソッドを追加。
20+
* `setCimdWhitelist(String[])` メソッドを追加。
21+
* `isCimdAlwaysRetrieved()` メソッドを追加。
22+
* `setCimdAlwaysRetrieved(boolean)` メソッドを追加。
23+
* `isCimdHttpPermitted()` メソッドを追加。
24+
* `setCimdHttpPermitted(boolean)` メソッドを追加。
25+
* `isCimdQueryPermitted()` メソッドを追加。
26+
* `setCimdQueryPermitted(boolean)` メソッドを追加。
27+
28+
- `TokenRequest` クラス
29+
* `getCimdOptions()` メソッドを追加。
30+
* `setCimdOptions(CimdOptions)` メソッドを追加。
31+
32+
- 新しい型
33+
* `CimdOptions` クラス
34+
35+
436
4.29 (2025 年 11 月 18 日)
537
--------------------------
638

CHANGES.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
11
CHANGES
22
=======
33

4+
- `AuthorizationRequest` class
5+
* Added the `getCimdOptions()` method.
6+
* Added the `setCimdOptions(CimdOptions)` method.
7+
8+
- `BackchannelAuthenticationRequest` class
9+
* Added the `getCimdOptions()` method.
10+
* Added the `setCimdOptions(CimdOptions)` method.
11+
12+
- `DeviceAuthorizationRequest` class
13+
* Added the `getCimdOptions()` method.
14+
* Added the `setCimdOptions(CimdOptions)` method.
15+
16+
- `Service` class
17+
* Added the `isCimdWhitelistEnabled()` method.
18+
* Added the `setCimdWhitelistEnabled(boolean)` method.
19+
* Added the `getCimdWhitelist()` method.
20+
* Added the `setCimdWhitelist(String[])` method.
21+
* Added the `isCimdAlwaysRetrieved()` method.
22+
* Added the `setCimdAlwaysRetrieved(boolean)` method.
23+
* Added the `isCimdHttpPermitted()` method.
24+
* Added the `setCimdHttpPermitted(boolean)` method.
25+
* Added the `isCimdQueryPermitted()` method.
26+
* Added the `setCimdQueryPermitted(boolean)` method.
27+
28+
- `TokenRequest` class
29+
* Added the `getCimdOptions()` method.
30+
* Added the `setCimdOptions(CimdOptions)` method.
31+
32+
- New types
33+
* `CimdOptions` class
34+
35+
436
4.29 (2025-11-18)
537
-----------------
638

src/main/java/com/authlete/common/dto/AuthorizationRequest.java

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2014-2023 Authlete, Inc.
2+
* Copyright (C) 2014-2025 Authlete, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@
5050
*/
5151
public class AuthorizationRequest implements Serializable
5252
{
53-
private static final long serialVersionUID = 3L;
53+
private static final long serialVersionUID = 4L;
5454

5555

5656
/**
@@ -69,6 +69,15 @@ public class AuthorizationRequest implements Serializable
6969
private String context;
7070

7171

72+
/**
73+
* Options for CIMD processing.
74+
*
75+
* @since 4.30
76+
* @since Authlete 3.0.22
77+
*/
78+
private CimdOptions cimdOptions;
79+
80+
7281
/**
7382
* Get the value of {@code parameters} which are the request
7483
* parameters that the OAuth 2.0 authorization endpoint of the
@@ -184,4 +193,49 @@ public AuthorizationRequest setContext(String context)
184193

185194
return this;
186195
}
196+
197+
198+
/**
199+
* Get options for <a href=
200+
* "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
201+
* >CIMD</a> processing.
202+
*
203+
* @return
204+
* Options for CIMD processing.
205+
*
206+
* @since 4.30
207+
* @since Authlete 3.0.22
208+
*
209+
* @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
210+
* OAuth Client ID Metadata Document</a>
211+
*/
212+
public CimdOptions getCimdOptions()
213+
{
214+
return cimdOptions;
215+
}
216+
217+
218+
/**
219+
* Set options for <a href=
220+
* "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
221+
* >CIMD</a> processing.
222+
*
223+
* @param options
224+
* Options for CIMD processing.
225+
*
226+
* @return
227+
* {@code this} object.
228+
*
229+
* @since 4.30
230+
* @since Authlete 3.0.22
231+
*
232+
* @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
233+
* OAuth Client ID Metadata Document</a>
234+
*/
235+
public AuthorizationRequest setCimdOptions(CimdOptions options)
236+
{
237+
this.cimdOptions = options;
238+
239+
return this;
240+
}
187241
}

src/main/java/com/authlete/common/dto/BackchannelAuthenticationRequest.java

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2024 Authlete, Inc.
2+
* Copyright (C) 2018-2025 Authlete, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -124,7 +124,7 @@
124124
*/
125125
public class BackchannelAuthenticationRequest implements Serializable
126126
{
127-
private static final long serialVersionUID = 2L;
127+
private static final long serialVersionUID = 3L;
128128

129129

130130
/**
@@ -181,6 +181,15 @@ public class BackchannelAuthenticationRequest implements Serializable
181181
private String oauthClientAttestationPop;
182182

183183

184+
/**
185+
* Options for CIMD processing.
186+
*
187+
* @since 4.30
188+
* @since Authlete 3.0.22
189+
*/
190+
private CimdOptions cimdOptions;
191+
192+
184193
/**
185194
* Get the value of {@code parameters} which are the request parameters
186195
* that the backchannel authentication endpoint of the OpenID provider
@@ -446,4 +455,49 @@ public BackchannelAuthenticationRequest setOauthClientAttestationPop(String jwt)
446455

447456
return this;
448457
}
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+
}
449503
}

0 commit comments

Comments
 (0)