Class PropertiesEndpointAccessResolver

java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.PropertiesEndpointAccessResolver
All Implemented Interfaces:
EndpointAccessResolver

public class PropertiesEndpointAccessResolver extends Object implements EndpointAccessResolver
EndpointAccessResolver that resolves the permitted level of access to an endpoint using the following properties:
  1. management.endpoint.<id>.access or management.endpoint.<id>.enabled (deprecated)
  2. management.endpoints.access.default or management.endpoints.enabled-by-default (deprecated)
The resulting access is capped using management.endpoints.access.max-permitted.
Since:
3.4.0
Author:
Andy Wilkinson
  • Constructor Details

    • PropertiesEndpointAccessResolver

      public PropertiesEndpointAccessResolver(PropertyResolver properties)
  • Method Details

    • accessFor

      public Access accessFor(EndpointId endpointId, Access defaultAccess)
      Description copied from interface: EndpointAccessResolver
      Resolves the permitted level of access for the endpoint with the given endpointId and defaultAccess.
      Specified by:
      accessFor in interface EndpointAccessResolver
      Parameters:
      endpointId - the ID of the endpoint
      defaultAccess - the default access level of the endpoint
      Returns:
      the permitted level of access, never null