code: protected void configureEndpointAccess(final HttpSecurity httpSecurity,
                                             final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests,
                                             final ActuatorEndpointProperties.EndpointAccessLevel access,
                                             final ActuatorEndpointProperties properties,
                                             final EndpointRequest.EndpointRequestMatcher endpoint) throws Exception {
          switch (access) {
              case AUTHORITY:
                  configureEndpointAccessByAuthority(requests, properties, endpoint);
                  configureEndpointAccessByFormLogin(requests);
                  break;
              case ROLE:
                  configureEndpointAccessByRole(requests, properties, endpoint);
                  configureEndpointAccessByFormLogin(requests);
                  break;
              case AUTHENTICATED:
                  configureEndpointAccessAuthenticated(requests, endpoint);
                  configureEndpointAccessByFormLogin(requests);
                  break;
              case IP_ADDRESS:
                  configureEndpointAccessByIpAddress(requests, properties, endpoint);
                  break;
              case PERMIT:
                  configureEndpointAccessPermitAll(requests, endpoint);
                  break;
              case ANONYMOUS:
                  configureEndpointAccessAnonymously(requests, endpoint);
                  break;
              case DENY:
              default:
                  configureEndpointAccessToDenyAll(requests, endpoint);
                  break;
          }
      }
docs: Configure endpoint access.
  
  @param httpSecurity the httpSecurity
  @param requests     the requests
  @param access       the access
  @param properties   the properties
  @param endpoint     the endpoint
  @throws Exception the exception