code: 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;
      }
docs: Check the response type against expected response types.
  
  @param type          the current response type
  @param expectedTypes the expected response types
  @return whether the response type is supported