public static boolean checkResponseTypes ( final String type , final OAuth20ResponseTypes ... expectedTypes ) { LOGGER . debug ( "Response type: [{}]" , type ) ; val checked = Stream . of ( expectedTypes ) . anyMatch ( t -> OAuth20Utils . isResponseType ( type , t ) ) ; if ( ! checked ) { LOGGER . error ( "Unsupported response type: [{}]" , type ) ; } return checked ; }
Check the response type against expected response types .