validateAuthorizationDetails
abstract fun validateAuthorizationDetails(authorizationDetails: Collection<AuthorizationDetails>): Set<AuthorizationDetails>(source)
RFC9396. The AS MUST refuse to process any unknown authorization details type or authorization details not conforming to the respective type definition. The AS MUST abort processing and respond with an error invalid_authorization_details to the client if any of the following are true of the objects in the authorizationDetails structure:
contains an unknown authorization details type value,
is an object of a known type but containing unknown fields,
contains fields of the wrong type for the authorization details type,
contains fields with invalid values for the authorization details type
is missing required fields for the authorization details type.
Return
Set of potentially transformed AuthorizationDetails (function may have side effects)