Class OA2ClientLoaderImpl<T extends OA2ClientEnvironment>

    • Constructor Detail

      • OA2ClientLoaderImpl

        public OA2ClientLoaderImpl()
    • Method Detail

      • createServiceClient

        public edu.uiuc.ncsa.security.servlet.ServiceClient createServiceClient​(URI host)
      • getWellKnownClient

        public edu.uiuc.ncsa.security.servlet.ServiceClient getWellKnownClient()
      • getWellKnownString

        public String getWellKnownString​(String key)
        Get the given value from the given key on the well-known page. This just return strings. If there is no such value, a null is returned. If the response is incorrect, an exception is thrown.
        Parameters:
        key -
        Returns:
      • getWellKnownValue

        public Object getWellKnownValue​(String key)
        Get a value form the well-known configuration which may be a JSON or other object. You have to process it once you have it.
        Parameters:
        key -
        Returns:
      • getWellKnownConfiguration

        public net.sf.json.JSONObject getWellKnownConfiguration()
        The well-known page from the server. Cache this or every call for a configuration value can require a trip to the server. The well-known page should rarely change, so this is completely reasonable.
        Returns:
      • createServiceURI

        protected URI createServiceURI​(String foundURI,
                                       String endpoint,
                                       String wellKnownEntry)
      • checkURI

        protected URI checkURI​(String uri,
                               String componentName)
        Checks the uri. The componentName is simply used for a more readable error messages if the uri is trivial or there is some syntax error with it.
        Parameters:
        uri -
        componentName -
        Returns:
      • getLoggerProvider

        public abstract edu.uiuc.ncsa.security.core.util.LoggerProvider getLoggerProvider()
      • getDebugger

        public abstract edu.uiuc.ncsa.security.core.util.MetaDebugUtil getDebugger()
        Checks for and sets up the debugging for this loader. Once this is set up, you may have to tell any environments that use it that debugging is enabled. Note that this is not used in this module, but in OA4MP proper, but has to b here for visibility later.
      • getDebugger

        protected edu.uiuc.ncsa.security.core.util.MetaDebugUtil getDebugger​(String debugLevel)