@@ -52,14 +52,6 @@ data class AuthenticationRequestParameters(
5252 @SerialName(" client_id" )
5353 val clientId : String? = null ,
5454
55- /* *
56- * OID4VP: OPTIONAL. A string identifying the scheme of the value in the `client_id` Authorization Request parameter
57- * (Client Identifier scheme). Kept here only for compatibility with POTENTIAL.
58- */
59- @Deprecated(" Removed from OpenID4VP Draft 22" , level = DeprecationLevel .ERROR )
60- @SerialName(" client_id_scheme" )
61- val clientIdScheme : OpenIdConstants .ClientIdScheme ? = null ,
62-
6355 /* *
6456 * OIDC: REQUIRED. Redirection URI to which the response will be sent. This URI MUST exactly match one of the
6557 * Redirection URI values for the Client pre-registered at the OpenID Provider, with the matching performed as
@@ -128,10 +120,6 @@ data class AuthenticationRequestParameters(
128120 @SerialName(" client_metadata" )
129121 val clientMetadata : RelyingPartyMetadata ? = null ,
130122
131- @Deprecated(" Removed from OpenID4VP Draft 21" )
132- @SerialName(" client_metadata_uri" )
133- val clientMetadataUri : String? = null ,
134-
135123 /* *
136124 * OIDC: OPTIONAL. ID Token previously issued by the Authorization Server being passed as a hint about the
137125 * End-User's current or past authenticated session with the Client. If the End-User identified by the ID Token is
@@ -395,15 +383,13 @@ data class AuthenticationRequestParameters(
395383) : RequestParameters() {
396384
397385 /* *
398- * Reads the [OpenIdConstants.ClientIdScheme] of this request either directly from [clientIdScheme],
399- * or by extracting the prefix from [clientId] (as specified in OpenID4VP draft 22 onwards).
386+ * Reads the [OpenIdConstants.ClientIdScheme] by extracting the prefix from [clientId]
400387 */
401388 val clientIdSchemeExtracted: OpenIdConstants .ClientIdScheme ?
402389 get() = clientId?.let { OpenIdConstants .ClientIdScheme .decodeFromClientId(it) }
403390
404391 /* *
405- * Reads the [clientId] and removes the prefix of the [clientIdSchemeExtracted],
406- * as specified in OpenID4VP draft 22 onwards.
392+ * Reads the [clientId] and removes the prefix of the [clientIdSchemeExtracted].
407393 * OpenID4VP states that the *full* [clientId] must be used for presentations and anything else.
408394 */
409395 val clientIdWithoutPrefix: String?
@@ -413,13 +399,12 @@ data class AuthenticationRequestParameters(
413399
414400 /* *
415401 * Reads the [redirectUrl], or the [clientIdWithoutPrefix] if [clientIdSchemeExtracted] is
416- * [OpenIdConstants.ClientIdScheme.RedirectUri], as specified in OpenID4VP draft 22 onwards .
402+ * [OpenIdConstants.ClientIdScheme.RedirectUri].
417403 */
418404 val redirectUrlExtracted: String?
419405 get() = redirectUrl
420406 ? : (clientIdSchemeExtracted as ? OpenIdConstants .ClientIdScheme .RedirectUri )?.let { clientIdWithoutPrefix }
421407
422- @Suppress(" DEPRECATION" )
423408 override fun equals (other : Any? ): Boolean {
424409 if (this == = other) return true
425410 if (other == null || this ::class != other::class ) return false
@@ -473,7 +458,6 @@ data class AuthenticationRequestParameters(
473458 return true
474459 }
475460
476- @Suppress(" DEPRECATION" )
477461 override fun hashCode (): Int {
478462 var result = responseType?.hashCode() ? : 0
479463 result = 31 * result + (clientId?.hashCode() ? : 0 )
0 commit comments