@Test(expected = UnsupportedOperationException.class) public void testBearerNoAuthenticatorNoLoginService() { final Map<String, Object> config = ImmutableMap.of( RestConfig.AUTHENTICATION_METHOD_CONFIG, RestConfig.AUTHENTICATION_METHOD_BEARER); Application app = new TestApp(config); app.createBearerSecurityHandler(); }
protected ConstraintSecurityHandler createBearerSecurityHandler() { return createSecurityHandler(); }
Application { protected ConstraintSecurityHandler createBearerSecurityHandler() { return createSecurityHandler(); } }
Application { protected ConstraintSecurityHandler createBearerSecurityHandler() { return createSecurityHandler(); } Application(T config);  Application(T config, String path); }
Application { protected ConstraintSecurityHandler createBearerSecurityHandler() { return createSecurityHandler(); } Application(T config);  Application(T config, String path); final String getPath(); final Metrics getMetrics(); abstract void setupResources(Configurable<?> config, T appConfig); Map<String,String> getMetricsTags(); Server createServer(); static Map<String, String> parseListToMap(List<String> list); Handler wrapWithGzipHandler(Handler handler); static List<URI> parseListeners(
          List<String> listenersConfig,
          int deprecatedPort,
          List<String> supportedSchemes,
          String defaultScheme
  ); void configureBaseApplication(Configurable<?> config); void configureBaseApplication(Configurable<?> config, Map<String, String> metricTags); T getConfiguration(); void start(); void join(); void stop(); void onShutdown(); }
Application { protected ConstraintSecurityHandler createBearerSecurityHandler() { return createSecurityHandler(); } Application(T config);  Application(T config, String path); final String getPath(); final Metrics getMetrics(); abstract void setupResources(Configurable<?> config, T appConfig); Map<String,String> getMetricsTags(); Server createServer(); static Map<String, String> parseListToMap(List<String> list); Handler wrapWithGzipHandler(Handler handler); static List<URI> parseListeners(
          List<String> listenersConfig,
          int deprecatedPort,
          List<String> supportedSchemes,
          String defaultScheme
  ); void configureBaseApplication(Configurable<?> config); void configureBaseApplication(Configurable<?> config, Map<String, String> metricTags); T getConfiguration(); void start(); void join(); void stop(); void onShutdown();  }