class ApplicationAuth implements RequestAuthorizer {

   protected boolean doCheckAuthorization(BasicAuthCredentials creds) {
      if(creds == null) {
         return false;
      }
      Application app = appRegistry.getApplication(creds.getUsername());
      if(app == null) {
         return false;
      }
      return Objects.equal(app.getSecret(), creds.getPassword());
   }

   @Inject public  ApplicationAuth(AppRegistry appRegistry, BridgeMetrics metrics);

}