private boolean matchQueryParams ( MultiValueMap < String , String > registeredRedirectUriQueryParams , MultiValueMap < String , String > requestedRedirectUriQueryParams ) { Iterator < String > iter = registeredRedirectUriQueryParams . keySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { String key = iter . next ( ) ; List < String > registeredRedirectUriQueryParamsValues = registeredRedirectUriQueryParams . get ( key ) ; List < String > requestedRedirectUriQueryParamsValues = requestedRedirectUriQueryParams . get ( key ) ; if ( ! registeredRedirectUriQueryParamsValues . equals ( requestedRedirectUriQueryParamsValues ) ) { return false ; } } return true ; }
Checks whether the registered redirect uri query params key and values contains match the requested set