Class ScriptEntitlementInfo
java.lang.Object
com.sun.identity.saml2.plugins.scripted.ScriptEntitlementInfo
- All Implemented Interfaces:
com.sun.identity.entitlement.EntitlementInfo
@EvolvingAll
public class ScriptEntitlementInfo
extends Object
implements com.sun.identity.entitlement.EntitlementInfo
This class wraps around an
EntitlementInfo
object for consumption in scripts. This prevents the script from
calling into methods that are not exposed by the EntitlementInfo interface but may be available in the concrete
class.-
Constructor Summary
ConstructorDescriptionScriptEntitlementInfo
(com.sun.identity.entitlement.EntitlementInfo entitlementInfo) Create a new ScriptEntitlementInfo that wraps the providedEntitlementInfo
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getActionValue
(String name) getActionValues
(String name) com.sun.identity.entitlement.Application
getApplication
(Subject adminSubject, String realm) getName()
long
getTTL()
boolean
int
hashCode()
org.json.JSONObject
-
Constructor Details
-
ScriptEntitlementInfo
public ScriptEntitlementInfo(com.sun.identity.entitlement.EntitlementInfo entitlementInfo) Create a new ScriptEntitlementInfo that wraps the providedEntitlementInfo
.- Parameters:
entitlementInfo
- the entitlement info object to be wrapped
-
-
Method Details
-
getName
-
getResourceNames
-
getResourceName
-
getApplicationName
-
getActionValue
-
getActionValues
-
getActionValues
-
getAdvices
-
hasAdvice
public boolean hasAdvice() -
getAttributes
-
getTTL
public long getTTL() -
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException- Throws:
org.json.JSONException
-
getApplication
public com.sun.identity.entitlement.Application getApplication(Subject adminSubject, String realm) throws EntitlementException - Throws:
EntitlementException
-
getRequestedResourceNames
-
getRequestedResourceName
-
equals
-
hashCode
public int hashCode()
-