Class LDAPClaimsSource

    • Field Detail

      • loggingEnabled

        protected boolean loggingEnabled
    • Constructor Detail

      • LDAPClaimsSource

        public LDAPClaimsSource()
      • LDAPClaimsSource

        public LDAPClaimsSource​(org.qdl_lang.variables.QDLStem stem)
      • LDAPClaimsSource

        public LDAPClaimsSource​(org.qdl_lang.variables.QDLStem stem,
                                OA2SE oa2SE)
      • LDAPClaimsSource

        public LDAPClaimsSource​(LDAPConfiguration ldapConfiguration,
                                edu.uiuc.ncsa.security.core.util.MyLoggingFacade myLogger)
      • LDAPClaimsSource

        public LDAPClaimsSource​(OA2SE oa2SE)
    • Method Detail

      • getSearchName

        public String getSearchName​(net.sf.json.JSONObject claims,
                                    javax.servlet.http.HttpServletRequest request,
                                    ServiceTransaction transaction)
        Returns the name of the user for whom the search is to be run. The default is to return the name the user used to log in to MyProxy. Otherwise, this takes a key for the user information and returns the value it finds there. Note that if you specify an email, the whole email will be returned. Otherwise, the name will be truncated at the "@" sign (e.g. like an eppn).
        Parameters:
        claims -
        request -
        transaction -
        Returns:
      • isNCSA

        protected boolean isNCSA()
      • getMyLogger

        protected edu.uiuc.ncsa.security.core.util.MyLoggingFacade getMyLogger()
      • handleException

        public void handleException​(Throwable throwable,
                                    edu.uiuc.ncsa.security.core.util.MetaDebugUtil debugger)
      • processNCSAGroups

        protected Groups processNCSAGroups()
      • isLoggedOn

        protected boolean isLoggedOn()
      • getLDAPCfg

        public LDAPConfiguration getLDAPCfg()
        Convenience to cast the configuration to the right class.
        Returns:
      • logon

        public void logon​(edu.uiuc.ncsa.security.core.util.MetaDebugUtil debugUtil)
      • createConnection

        public LdapContext createConnection​(edu.uiuc.ncsa.security.core.util.MetaDebugUtil debugger)
      • getSearchFilterAttribute

        protected String getSearchFilterAttribute​(edu.uiuc.ncsa.security.core.util.MetaDebugUtil debugger)
      • closeConnection

        protected void closeConnection()
      • sayit

        protected void sayit​(String x)
      • debug

        public void debug​(String x)
        Specified by:
        debug in interface edu.uiuc.ncsa.security.core.Logable
      • isDebugOn

        public boolean isDebugOn()
        Specified by:
        isDebugOn in interface edu.uiuc.ncsa.security.core.Logable
      • setDebugOn

        public void setDebugOn​(boolean setOn)
        Specified by:
        setDebugOn in interface edu.uiuc.ncsa.security.core.Logable
      • info

        public void info​(String x)
        Specified by:
        info in interface edu.uiuc.ncsa.security.core.Logable
      • warn

        public void warn​(String x)
        Specified by:
        warn in interface edu.uiuc.ncsa.security.core.Logable
      • error

        public void error​(String x)
        Specified by:
        error in interface edu.uiuc.ncsa.security.core.Logable