@ file : Suppress (" DE PREC ATION ", Ġ" Spring Java Injection Points Autow iring Inspection ") Ċ Ċ package Ġuk . gov . just ice . digital . h mp ps . oauth 2 server . service Ċ Ċ import Ġorg . springframework . security . oauth 2 . provider . Client Details Service Ċ import Ġuk . gov . just ice . digital . h mp ps . oauth 2 server . resource . M fa Access . all Ċ import Ġuk . gov . just ice . digital . h mp ps . oauth 2 server . resource . M fa Access . un trusted Ċ Ċ open Ġclass ĠM fa Client Service ( ĊĠ Ġprivate Ġval Ġclient Details Service : ĠClient Details Service , ĊĠ Ġprivate Ġval Ġm fa Client Network Service : ĠM fa Client Network Service , Ċ ) Ġ{ ĊĊĠ Ġopen Ġfun Ġclient Needs M fa ( clientId : ĠString ?): ĠBoolean Ġ{ ĊĠĠĠ Ġval Ġclient Ġ= Ġclient Details Service . load Client By ClientId ( clientId ) ĊĠĠĠ Ġval Ġm fa Ġ= Ġclient . additional Information [" m fa "] Ġas ? ĠString ? ĊĠĠĠ Ġreturn Ġ( m fa Ġ== Ġun trusted . name Ġ&& Ġm fa Client Network Service . outside Approved Network ()) Ġ|| Ġm fa Ġ== Ġall . name ĊĠ Ġ} Ċ } Ċ