Class PrivilegeChangeNotifier


  • public class PrivilegeChangeNotifier
    extends Object
    • Field Detail

      • ALLOW_ANY_LISTENER_URL

        public static final String ALLOW_ANY_LISTENER_URL
        When set to true, entitlement listener notification URLs are not SSRF-validated (restores the pre-fix behaviour). Runtime toggle for deployments whose listener endpoints are hosted on internal addresses. Default false.
        See Also:
        Constant Field Values
    • Method Detail

      • isListenerUrlAllowed

        public static boolean isListenerUrlAllowed​(String url)
        Parameters:
        url - a candidate entitlement listener notification callback URL.
        Returns:
        true if the URL may be used — i.e. it is SSRF-safe (http/https, not a loopback/link-local/private/metadata address) or ALLOW_ANY_LISTENER_URL is set.