|
330 | 330 | */ |
331 | 331 | public class Service implements Serializable |
332 | 332 | { |
333 | | - private static final long serialVersionUID = 86L; |
| 333 | + private static final long serialVersionUID = 87L; |
334 | 334 |
|
335 | 335 |
|
336 | 336 | /* |
@@ -1905,21 +1905,21 @@ public class Service implements Serializable |
1905 | 1905 |
|
1906 | 1906 |
|
1907 | 1907 | /** |
1908 | | - * Whether to enable the whitelist for client IDs in the CIMD context. |
| 1908 | + * Whether to enable the allowlist for client IDs in the CIMD context. |
1909 | 1909 | * |
1910 | | - * @since 4.30 |
| 1910 | + * @since 4.31 |
1911 | 1911 | * @since Authlete 3.0.22 |
1912 | 1912 | */ |
1913 | | - private boolean cimdWhitelistEnabled; |
| 1913 | + private boolean cimdAllowlistEnabled; |
1914 | 1914 |
|
1915 | 1915 |
|
1916 | 1916 | /** |
1917 | | - * The whitelist for client IDs in the CIMD context. |
| 1917 | + * The allowlist for client IDs in the CIMD context. |
1918 | 1918 | * |
1919 | | - * @since 4.30 |
| 1919 | + * @since 4.31 |
1920 | 1920 | * @since Authlete 3.0.22 |
1921 | 1921 | */ |
1922 | | - private String[] cimdWhitelist; |
| 1922 | + private String[] cimdAllowlist; |
1923 | 1923 |
|
1924 | 1924 |
|
1925 | 1925 | /** |
@@ -12251,162 +12251,162 @@ public Service setClientIdMetadataDocumentSupported(boolean supported) |
12251 | 12251 |
|
12252 | 12252 |
|
12253 | 12253 | /** |
12254 | | - * Get the flag that indicates whether the whitelist for client IDs |
| 12254 | + * Get the flag that indicates whether the allowlist for client IDs |
12255 | 12255 | * in the <a href= |
12256 | 12256 | * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
12257 | 12257 | * >CIMD</a> context is enabled or not. |
12258 | 12258 | * |
12259 | 12259 | * <p> |
12260 | | - * If the whitelist is enabled, the client ID in a request must match at |
12261 | | - * least one entry in the whitelist to be considered a valid client ID |
| 12260 | + * If the allowlist is enabled, the client ID in a request must match at |
| 12261 | + * least one entry in the allowlist to be considered a valid client ID |
12262 | 12262 | * in the CIMD context. |
12263 | 12263 | * </p> |
12264 | 12264 | * |
12265 | 12265 | * @return |
12266 | | - * {@code true} if the whitelist for client IDs in the CIMD |
| 12266 | + * {@code true} if the allowlist for client IDs in the CIMD |
12267 | 12267 | * context is enabled. |
12268 | 12268 | * |
12269 | | - * @since 4.30 |
| 12269 | + * @since 4.31 |
12270 | 12270 | * @since Authlete 3.0.22 |
12271 | 12271 | * |
12272 | 12272 | * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
12273 | 12273 | * OAuth Client ID Metadata Document</a> |
12274 | 12274 | */ |
12275 | | - public boolean isCimdWhitelistEnabled() |
| 12275 | + public boolean isCimdAllowlistEnabled() |
12276 | 12276 | { |
12277 | | - return cimdWhitelistEnabled; |
| 12277 | + return cimdAllowlistEnabled; |
12278 | 12278 | } |
12279 | 12279 |
|
12280 | 12280 |
|
12281 | 12281 | /** |
12282 | | - * Set the flag that indicates whether the whitelist for client IDs |
| 12282 | + * Set the flag that indicates whether the allowlist for client IDs |
12283 | 12283 | * in the <a href= |
12284 | 12284 | * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
12285 | 12285 | * >CIMD</a> context is enabled or not. |
12286 | 12286 | * |
12287 | 12287 | * <p> |
12288 | | - * If the whitelist is enabled, the client ID in a request must match at |
12289 | | - * least one entry in the whitelist to be considered a valid client ID |
| 12288 | + * If the allowlist is enabled, the client ID in a request must match at |
| 12289 | + * least one entry in the allowlist to be considered a valid client ID |
12290 | 12290 | * in the CIMD context. |
12291 | 12291 | * </p> |
12292 | 12292 | * |
12293 | 12293 | * @param enabled |
12294 | | - * {@code true} to enable the whitelist for client IDs in the |
| 12294 | + * {@code true} to enable the allowlist for client IDs in the |
12295 | 12295 | * CIMD context. |
12296 | 12296 | * |
12297 | 12297 | * @return |
12298 | 12298 | * {@code this} object. |
12299 | 12299 | * |
12300 | | - * @since 4.30 |
| 12300 | + * @since 4.31 |
12301 | 12301 | * @since Authlete 3.0.22 |
12302 | 12302 | * |
12303 | 12303 | * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
12304 | 12304 | * OAuth Client ID Metadata Document</a> |
12305 | 12305 | */ |
12306 | | - public Service setCimdWhitelistEnabled(boolean enabled) |
| 12306 | + public Service setCimdAllowlistEnabled(boolean enabled) |
12307 | 12307 | { |
12308 | | - this.cimdWhitelistEnabled = enabled; |
| 12308 | + this.cimdAllowlistEnabled = enabled; |
12309 | 12309 |
|
12310 | 12310 | return this; |
12311 | 12311 | } |
12312 | 12312 |
|
12313 | 12313 |
|
12314 | 12314 | /** |
12315 | | - * Get the whitelist for client IDs in the <a href= |
| 12315 | + * Get the allowlist for client IDs in the <a href= |
12316 | 12316 | * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
12317 | 12317 | * >CIMD</a> context. |
12318 | 12318 | * |
12319 | 12319 | * <p> |
12320 | | - * When the whitelist feature is enabled (see {@link #isCimdWhitelistEnabled()}), |
12321 | | - * the whitelist specified by this property is consulted to determine |
| 12320 | + * When the allowlist feature is enabled (see {@link #isCimdAllowlistEnabled()}), |
| 12321 | + * the allowlist specified by this property is consulted to determine |
12322 | 12322 | * whether the client ID in a request is valid in the CIMD context. |
12323 | 12323 | * In this case, the client ID must match at least one entry in the |
12324 | | - * whitelist. |
| 12324 | + * allowlist. |
12325 | 12325 | * </p> |
12326 | 12326 | * |
12327 | 12327 | * <p> |
12328 | | - * Each entry in the whitelist must be a valid URI. The comparison between |
12329 | | - * a whitelist entry and a client ID is performed as follows: |
| 12328 | + * Each entry in the allowlist must be a valid URI. The comparison between |
| 12329 | + * an allowlist entry and a client ID is performed as follows: |
12330 | 12330 | * </p> |
12331 | 12331 | * |
12332 | 12332 | * <ol> |
12333 | 12333 | * <li>[scheme] Simple string comparison. |
12334 | 12334 | * <li>[authority] Simple string comparison. |
12335 | 12335 | * <li>[path] The client ID's path must contain all path segments of |
12336 | | - * the whitelist entry in the same order. |
12337 | | - * <li>[query] Simple string comparison, but only if the whitelist |
| 12336 | + * the allowlist entry in the same order. |
| 12337 | + * <li>[query] Simple string comparison, but only if the allowlist |
12338 | 12338 | * entry has a query component. |
12339 | 12339 | * </ol> |
12340 | 12340 | * |
12341 | 12341 | * <p> |
12342 | | - * For example, if the whitelist contains "{@code https://example.com/a/b}", |
| 12342 | + * For example, if the allowlist contains "{@code https://example.com/a/b}", |
12343 | 12343 | * then "{@code https://example.com/a/b/c}" is considered valid, but |
12344 | 12344 | * "{@code https://example.com/a}" is not. |
12345 | 12345 | * </p> |
12346 | 12346 | * |
12347 | 12347 | * @return |
12348 | | - * The whitelist for client IDs in the CIMD context. |
| 12348 | + * The allowlist for client IDs in the CIMD context. |
12349 | 12349 | * |
12350 | | - * @since 4.30 |
| 12350 | + * @since 4.31 |
12351 | 12351 | * @since Authlete 3.0.22 |
12352 | 12352 | * |
12353 | 12353 | * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
12354 | 12354 | * OAuth Client ID Metadata Document</a> |
12355 | 12355 | */ |
12356 | | - public String[] getCimdWhitelist() |
| 12356 | + public String[] getCimdAllowlist() |
12357 | 12357 | { |
12358 | | - return cimdWhitelist; |
| 12358 | + return cimdAllowlist; |
12359 | 12359 | } |
12360 | 12360 |
|
12361 | 12361 |
|
12362 | 12362 | /** |
12363 | | - * Set the whitelist for client IDs in the <a href= |
| 12363 | + * Set the allowlist for client IDs in the <a href= |
12364 | 12364 | * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/" |
12365 | 12365 | * >CIMD</a> context. |
12366 | 12366 | * |
12367 | 12367 | * <p> |
12368 | | - * When the whitelist feature is enabled (see {@link #isCimdWhitelistEnabled()}), |
12369 | | - * the whitelist specified by this property is consulted to determine |
| 12368 | + * When the allowlist feature is enabled (see {@link #isCimdAllowlistEnabled()}), |
| 12369 | + * the allowlist specified by this property is consulted to determine |
12370 | 12370 | * whether the client ID in a request is valid in the CIMD context. |
12371 | 12371 | * In this case, the client ID must match at least one entry in the |
12372 | | - * whitelist. |
| 12372 | + * allowlist. |
12373 | 12373 | * </p> |
12374 | 12374 | * |
12375 | 12375 | * <p> |
12376 | | - * Each entry in the whitelist must be a valid URI. The comparison between |
12377 | | - * a whitelist entry and a client ID is performed as follows: |
| 12376 | + * Each entry in the allowlist must be a valid URI. The comparison between |
| 12377 | + * an allowlist entry and a client ID is performed as follows: |
12378 | 12378 | * </p> |
12379 | 12379 | * |
12380 | 12380 | * <ol> |
12381 | 12381 | * <li>[scheme] Simple string comparison. |
12382 | 12382 | * <li>[authority] Simple string comparison. |
12383 | 12383 | * <li>[path] The client ID's path must contain all path segments of |
12384 | | - * the whitelist entry in the same order. |
12385 | | - * <li>[query] Simple string comparison, but only if the whitelist |
| 12384 | + * the allowlist entry in the same order. |
| 12385 | + * <li>[query] Simple string comparison, but only if the allowlist |
12386 | 12386 | * entry has a query component. |
12387 | 12387 | * </ol> |
12388 | 12388 | * |
12389 | 12389 | * <p> |
12390 | | - * For example, if the whitelist contains "{@code https://example.com/a/b}", |
| 12390 | + * For example, if the allowlist contains "{@code https://example.com/a/b}", |
12391 | 12391 | * then "{@code https://example.com/a/b/c}" is considered valid, but |
12392 | 12392 | * "{@code https://example.com/a}" is not. |
12393 | 12393 | * </p> |
12394 | 12394 | * |
12395 | | - * @param whitelist |
12396 | | - * The whitelist for client IDs in the CIMD context. |
| 12395 | + * @param allowlist |
| 12396 | + * The allowlist for client IDs in the CIMD context. |
12397 | 12397 | * |
12398 | 12398 | * @return |
12399 | 12399 | * {@code this} object. |
12400 | 12400 | * |
12401 | | - * @since 4.30 |
| 12401 | + * @since 4.31 |
12402 | 12402 | * @since Authlete 3.0.22 |
12403 | 12403 | * |
12404 | 12404 | * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"> |
12405 | 12405 | * OAuth Client ID Metadata Document</a> |
12406 | 12406 | */ |
12407 | | - public Service setCimdWhitelist(String[] whitelist) |
| 12407 | + public Service setCimdAllowlist(String[] allowlist) |
12408 | 12408 | { |
12409 | | - this.cimdWhitelist = whitelist; |
| 12409 | + this.cimdAllowlist = allowlist; |
12410 | 12410 |
|
12411 | 12411 | return this; |
12412 | 12412 | } |
@@ -12559,8 +12559,8 @@ public Service setCimdAlwaysRetrieved(boolean always) |
12559 | 12559 | * |
12560 | 12560 | * <p> |
12561 | 12561 | * Given this purpose, it is not recommended to enable this option in |
12562 | | - * production environments unless a whitelist is used (see {@link |
12563 | | - * Service#isCimdWhitelistEnabled()}). |
| 12562 | + * production environments unless an allowlist is used (see {@link |
| 12563 | + * Service#isCimdAllowlistEnabled()}). |
12564 | 12564 | * </p> |
12565 | 12565 | * |
12566 | 12566 | * <p> |
@@ -12602,8 +12602,8 @@ public boolean isCimdHttpPermitted() |
12602 | 12602 | * |
12603 | 12603 | * <p> |
12604 | 12604 | * Given this purpose, it is not recommended to enable this option in |
12605 | | - * production environments unless a whitelist is used (see {@link |
12606 | | - * Service#isCimdWhitelistEnabled()}). |
| 12605 | + * production environments unless an allowlist is used (see {@link |
| 12606 | + * Service#isCimdAllowlistEnabled()}). |
12607 | 12607 | * </p> |
12608 | 12608 | * |
12609 | 12609 | * <p> |
|
0 commit comments