private void customizeSecurity(OpenAPI openApi, List<SecurityRequirement> securityRequirementsProperties) {
		List<SecurityRequirement> securityRequirements = openApi.getSecurity();
		if (CollectionUtils.isEmpty(securityRequirements)) {
			openApi.setSecurity(securityRequirementsProperties);
		}
		else {
			securityRequirementsProperties.forEach(securityRequirement -> {
				if (!securityRequirements.contains(securityRequirement)) {
					securityRequirements.add(securityRequirement);
				}
			});
		}
	}
Customize security.

@param openApi                        the open api
@param securityRequirementsProperties the security requirements
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/SpecPropertiesCustomizer.java