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 ; } }
Configure endpoint access .