public void addSecurityRequirementExtensionForEntireService(Swagger swagger){
  AuthenticationRule.Builder builder=AuthenticationRule.newBuilder();
  if (convertSecurityRequirementExtension(swagger.getVendorExtensions(),builder,new SimpleLocation("Swagger Spec"))) {
    builder.setSelector("*");
    authRules.add(builder.build());
  }
}

public void addSecurityRequirementExtensionForEntireService ( Swagger swagger ) { AuthenticationRule . Builder builder = AuthenticationRule . newBuilder ( ) ; if ( convertSecurityRequirementExtension ( swagger . getVendorExtensions ( ) , builder , new SimpleLocation ( "Swagger Spec" ) ) ) { builder . setSelector ( "*" ) ; authRules . add ( builder . build ( ) ) ; } }
adds auth security requirement for the entire service .
