330330 */
331331public class Service implements Serializable
332332{
333- private static final long serialVersionUID = 87L ;
333+ private static final long serialVersionUID = 88L ;
334334
335335
336336 /*
@@ -1951,6 +1951,16 @@ public class Service implements Serializable
19511951 private boolean cimdQueryPermitted ;
19521952
19531953
1954+ /**
1955+ * Whether to prohibit client ID aliases that start with {@code https://}
1956+ * or {@code http://}.
1957+ *
1958+ * @since 4.32
1959+ * @since Authlete 3.0.22
1960+ */
1961+ private boolean httpAliasProhibited ;
1962+
1963+
19541964 /**
19551965 * Get the service number.
19561966 *
@@ -4302,6 +4312,8 @@ public Service setErrorUriOmitted(boolean omitted)
43024312 * {@code false} if the feature is disabled.
43034313 *
43044314 * @since 2.2
4315+ *
4316+ * @see #isHttpAliasProhibited()
43054317 */
43064318 public boolean isClientIdAliasEnabled ()
43074319 {
@@ -4328,6 +4340,8 @@ public boolean isClientIdAliasEnabled()
43284340 * {@code this} object.
43294341 *
43304342 * @since 2.2
4343+ *
4344+ * @see #isHttpAliasProhibited()
43314345 */
43324346 public Service setClientIdAliasEnabled (boolean enabled )
43334347 {
@@ -12708,4 +12722,83 @@ public Service setCimdQueryPermitted(boolean permitted)
1270812722
1270912723 return this ;
1271012724 }
12725+
12726+
12727+ /**
12728+ * Get the flag that indicates whether to prohibit client ID aliases that
12729+ * start with {@code https://} or {@code http://}.
12730+ *
12731+ * <p>
12732+ * The primary purpose of this flag is to prevent the use of client ID
12733+ * aliases that may conflict with entity IDs in <a href=
12734+ * "https://openid.net/specs/openid-federation-1_0.html">OpenID Federation
12735+ * 1.0</a> or metadata document locations in <a href=
12736+ * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
12737+ * >CIMD</a>.
12738+ * </p>
12739+ *
12740+ * <p>
12741+ * For backward compatibility, the default value of this flag is set to
12742+ * {@code false}, but it is recommended to set it to {@code true} whenever
12743+ * possible.
12744+ * </p>
12745+ *
12746+ * @return
12747+ * {@code true} if client ID aliases that start with {@code https://}
12748+ * or {@code http://} are prohibited.
12749+ *
12750+ * @since 4.32
12751+ * @since Authlete 3.0.22
12752+ *
12753+ * @see <a href="https://openid.net/specs/openid-federation-1_0.html">
12754+ * OpenID Federation 1.0</a>
12755+ * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
12756+ * OAuth Client ID Metadata Document</a>
12757+ */
12758+ public boolean isHttpAliasProhibited ()
12759+ {
12760+ return httpAliasProhibited ;
12761+ }
12762+
12763+
12764+ /**
12765+ * Set the flag that indicates whether to prohibit client ID aliases that
12766+ * start with {@code https://} or {@code http://}.
12767+ *
12768+ * <p>
12769+ * The primary purpose of this flag is to prevent the use of client ID
12770+ * aliases that may conflict with entity IDs in <a href=
12771+ * "https://openid.net/specs/openid-federation-1_0.html">OpenID Federation
12772+ * 1.0</a> or metadata document locations in <a href=
12773+ * "https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/"
12774+ * >CIMD</a>.
12775+ * </p>
12776+ *
12777+ * <p>
12778+ * For backward compatibility, the default value of this flag is set to
12779+ * {@code false}, but it is recommended to set it to {@code true} whenever
12780+ * possible.
12781+ * </p>
12782+ *
12783+ * @param prohibited
12784+ * {@code true} to prohibit client ID aliases that start with
12785+ * {@code https://} or {@code http://}.
12786+ *
12787+ * @return
12788+ * {@code this} object.
12789+ *
12790+ * @since 4.32
12791+ * @since Authlete 3.0.22
12792+ *
12793+ * @see <a href="https://openid.net/specs/openid-federation-1_0.html">
12794+ * OpenID Federation 1.0</a>
12795+ * @see <a href="https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/">
12796+ * OAuth Client ID Metadata Document</a>
12797+ */
12798+ public Service setHttpAliasProhibited (boolean prohibited )
12799+ {
12800+ this .httpAliasProhibited = prohibited ;
12801+
12802+ return this ;
12803+ }
1271112804}
0 commit comments