Class AnotherJSONUtil

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.util.scripting.ScriptingConstants

    public class AnotherJSONUtil
    extends Object
    implements edu.uiuc.ncsa.security.util.scripting.ScriptingConstants

    Created by Jeff Gaynor
    on 6/1/20 at 3:52 PM

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ARGS_TAG  
      static String XMD_TAG  
      • Fields inherited from interface edu.uiuc.ncsa.security.util.scripting.ScriptingConstants

        ALL_PHASES, AUTH_PHASE, EXCHANGE_PHASE, POST_PREFIX, PRE_PREFIX, REFRESH_PHASE, SRE_EXEC_INIT, SRE_EXEC_PHASE, SRE_NO_EXEC_PHASE, SRE_PHASES, SRE_POST_ALL, SRE_POST_AT, SRE_POST_AUTH, SRE_POST_EXCHANGE, SRE_POST_REFRESH, SRE_POST_USER_INFO, SRE_PRE_ALL, SRE_PRE_AT, SRE_PRE_AUTH, SRE_PRE_EXCHANGE, SRE_PRE_REFRESH, SRE_PRE_USER_INFO, SRE_REQ_ACCESS_TOKEN, SRE_REQ_AUDIENCE, SRE_REQ_AUTH_HEADERS, SRE_REQ_CLAIM_SOURCES, SRE_REQ_CLAIMS, SRE_REQ_EXTENDED_ATTRIBUTES, SRE_REQ_FLOW_STATES, SRE_REQ_MAIL_CONFIG, SRE_REQ_MAIL_MESSAGE, SRE_REQ_PROXY_CLAIMS, SRE_REQ_REFRESH_TOKEN, SRE_REQ_RESOURCE, SRE_REQ_SCOPES, SRE_TX_REQ_AUDIENCE, SRE_TX_REQ_RESOURCES, SRE_TX_REQ_SCOPES, TOKEN_PHASE, USER_INFO_PHASE
    • Constructor Summary

      Constructors 
      Constructor Description
      AnotherJSONUtil()  
    • Constructor Detail

      • AnotherJSONUtil

        public AnotherJSONUtil()
    • Method Detail

      • toScriptArgs

        public static List<Object> toScriptArgs​(net.sf.json.JSON json)
        Contract is: Passing in a JSONObject means this has a single argument which is a stem. Passing in a JSONArray means this is an array of objects.
        Parameters:
        json -
        Returns:
      • createScripts

        public static edu.uiuc.ncsa.security.util.scripting.ScriptSet<QDLScript> createScripts​(net.sf.json.JSON topNode)
        Create all the scripts for this configuration. This is the main entry point for this class.
        Parameters:
        topNode -
        Returns:
      • processMD

        protected static edu.uiuc.ncsa.security.core.configuration.XProperties processMD​(net.sf.json.JSONObject jsonObject)
        Every configured elements has a set of meta-data about processing. Get it from the configuration and return it in an XProperties object.
        Parameters:
        jsonObject -
        Returns:
      • createScript

        protected static QDLScript createScript​(net.sf.json.JSONObject jsonObject)
        Create an individual script.
        Parameters:
        jsonObject -
        Returns:
      • buildArgList

        protected static String buildArgList​(net.sf.json.JSON json)
      • main

        public static void main​(String[] args)