Package com.sun.identity.entitlement
Class PrivilegeChangeNotifier
- java.lang.Object
-
- com.sun.identity.entitlement.PrivilegeChangeNotifier
-
public class PrivilegeChangeNotifier extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPrivilegeChangeNotifier.Task
-
Field Summary
Fields Modifier and Type Field Description static StringALLOW_ANY_LISTENER_URLWhen set totrue, entitlement listener notification URLs are not SSRF-validated (restores the pre-fix behaviour).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivilegeChangeNotifiergetInstance()static booleanisListenerUrlAllowed(String url)voidnotify(Subject adminSubject, String realm, String applicationName, String privilegeName, Set<String> resources)
-
-
-
Field Detail
-
ALLOW_ANY_LISTENER_URL
public static final String ALLOW_ANY_LISTENER_URL
When set totrue, 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. Defaultfalse.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PrivilegeChangeNotifier getInstance()
-
isListenerUrlAllowed
public static boolean isListenerUrlAllowed(String url)
- Parameters:
url- a candidate entitlement listener notification callback URL.- Returns:
trueif the URL may be used — i.e. it is SSRF-safe (http/https, not a loopback/link-local/private/metadata address) orALLOW_ANY_LISTENER_URLis set.
-
-