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 Details

    • 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 Details

    • getName

      public String getName()
    • getResourceNames

      public Set<String> getResourceNames()
    • getResourceName

      public String getResourceName()
    • getApplicationName

      public String getApplicationName()
    • getActionValue

      public Boolean getActionValue(String name)
    • getActionValues

      public Map<String,Boolean> getActionValues()
    • getActionValues

      public Set<Object> getActionValues(String name)
    • getAdvices

      public Map<String,Set<String>> getAdvices()
    • hasAdvice

      public boolean hasAdvice()
    • getAttributes

      public Map<String,Set<String>> 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

      public Set<String> getRequestedResourceNames()
    • getRequestedResourceName

      public String getRequestedResourceName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object