public io.swagger.v3.oas.annotations.security.SecurityRequirement[] getSecurityRequirements(
			HandlerMethod handlerMethod) {
		// class SecurityRequirements
		Class<?> beanType = handlerMethod.getBeanType();
		Set<io.swagger.v3.oas.annotations.security.SecurityRequirement> allSecurityTags = getSecurityRequirementsForClass(beanType);

		// handlerMethod SecurityRequirements
		Method method = handlerMethod.getMethod();
		allSecurityTags = getSecurityRequirementsForMethod(method, allSecurityTags);

		return (allSecurityTags != null) ? allSecurityTags.toArray(new io.swagger.v3.oas.annotations.security.SecurityRequirement[0]) : null;
	}
Get security requirements io . swagger . v 3 . oas . annotations . security . security requirement [ ].

@param handlerMethod the handlerMethod
@return the io . swagger . v 3 . oas . annotations . security . security requirement [ ]
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/SecurityService.java