public final class EntitlementListener extends Object
Constructor and Description |
---|
EntitlementListener(org.json.JSONObject jo) |
EntitlementListener(String url,
String application,
Collection<String> resourceNames)
Constructor.
|
EntitlementListener(URL url,
String application,
Collection<String> resourceNames)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
combine(EntitlementListener l)
Combines other listener.
|
boolean |
equals(Object other) |
Map<String,Set<String>> |
getMapAppToRes()
Returns map of application name to resource names.
|
URL |
getUrl()
Returns notification URL.
|
int |
hashCode() |
org.json.JSONObject |
toJSON() |
public EntitlementListener(org.json.JSONObject jo) throws org.json.JSONException, EntitlementException
org.json.JSONException
EntitlementException
public EntitlementListener(String url, String application, Collection<String> resourceNames) throws EntitlementException
url
- URL of which notification will be sent to.application
- Application name.resourceNames
- Notification will be send to url
if privilege for resources matches with the elements in
resourceNames
. Wildcard and sub resource matching
apply too.EntitlementException
- if url
or
resourceNames
is null.public EntitlementListener(URL url, String application, Collection<String> resourceNames) throws EntitlementException
url
- URL of which notification will be sent to.application
- Application name.resourceNames
- Notification will be send to url
if privilege for resources matches with the elements in
resourceNames
. Wildcard and sub resource matching
apply too.EntitlementException
- if url
or
resourceNames
is null.public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException
public Map<String,Set<String>> getMapAppToRes()
public URL getUrl()
public boolean combine(EntitlementListener l)
true
if combination is
possible.l
- listener.true
if combination is done.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.