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 anEntitlementInfo
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
Constructors Constructor Description ScriptEntitlementInfo(com.sun.identity.entitlement.EntitlementInfo entitlementInfo)
Create a new ScriptEntitlementInfo that wraps the providedEntitlementInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Boolean
getActionValue(String name)
Map<String,Boolean>
getActionValues()
Set<Object>
getActionValues(String name)
Map<String,Set<String>>
getAdvices()
com.sun.identity.entitlement.Application
getApplication(Subject adminSubject, String realm)
String
getApplicationName()
Map<String,Set<String>>
getAttributes()
String
getName()
String
getRequestedResourceName()
Set<String>
getRequestedResourceNames()
String
getResourceName()
Set<String>
getResourceNames()
long
getTTL()
boolean
hasAdvice()
int
hashCode()
org.json.JSONObject
toJSONObject()
-
-
-
Method Detail
-
getName
public String getName()
-
getResourceName
public String getResourceName()
-
getApplicationName
public String getApplicationName()
-
hasAdvice
public boolean hasAdvice()
-
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
-
getRequestedResourceName
public String getRequestedResourceName()
-
-