Class 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 Detail

      • ScriptEntitlementInfo

        public ScriptEntitlementInfo​(com.sun.identity.entitlement.EntitlementInfo entitlementInfo)
        Create a new ScriptEntitlementInfo that wraps the provided EntitlementInfo.
        Parameters:
        entitlementInfo - the entitlement info object to be wrapped
    • Method Detail

      • getName

        public String getName()
      • getResourceNames

        public Set<String> getResourceNames()
      • getResourceName

        public String getResourceName()
      • getApplicationName

        public String getApplicationName()
      • getActionValue

        public Boolean getActionValue​(String name)
      • hasAdvice

        public boolean hasAdvice()
      • getTTL

        public long getTTL()
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Throws:
        org.json.JSONException
      • getRequestedResourceNames

        public Set<String> getRequestedResourceNames()
      • getRequestedResourceName

        public String getRequestedResourceName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object