Class UserClaimSource

  • All Implemented Interfaces:
    Serializable, org.oa4mp.delegation.server.OA2Scopes, org.oa4mp.delegation.server.server.claims.ClaimSource

    public class UserClaimSource
    extends org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
    implements org.oa4mp.delegation.server.OA2Scopes
    This actually introspects the user database and does not require an LDAP configuration. Note that it is built into the server config for CILogon and is therefore never really accessed directly.

    Created by Jeff Gaynor
    on 8/20/15 at 1:37 PM

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.oa4mp.delegation.server.OA2Scopes

        org.oa4mp.delegation.server.OA2Scopes.ScopeUtil
    • Field Summary

      • Fields inherited from class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl

        groupHandler
      • Fields inherited from interface org.oa4mp.delegation.server.OA2Scopes

        basicScopes, EDU_PERSON_ORC_ID, nonPublicScopes, SCOPE_ADDRESS, SCOPE_CILOGON_INFO, SCOPE_EMAIL, SCOPE_MYPROXY, SCOPE_OFFLINE_ACCESS, SCOPE_OPENID, SCOPE_PHONE, SCOPE_PROFILE, SCOPE_TOKEN_MANAGER, SCOPE_USER_INFO
    • Constructor Summary

      Constructors 
      Constructor Description
      UserClaimSource​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)  
      UserClaimSource​(org.qdl_lang.variables.QDLStem stem)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String convertFromUTF7ToUTF8​(String utf7String)
      ***************************** * KEEP THIS! * * *****************************
      protected net.sf.json.JSONObject getJSONAttributes​(String rawJSON)
      Take the user's json_attr string and convert it into JSON for reference.
      CILogonOA2ServiceEnvironment getServiceEnvironment()  
      boolean isRunOnlyAtAuthorization()  
      net.sf.json.JSONObject process​(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction)  
      protected net.sf.json.JSONObject realProcessing​(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, org.oa4mp.delegation.server.ServiceTransaction transaction)  
      org.qdl_lang.variables.QDLStem toQDL()  
      • Methods inherited from class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl

        fromQDL, getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getPostProcessor, getPreProcessor, getScopes, hasConfiguration, hasJSONPostProcessor, hasJSONPreProcessor, isEnabled, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
    • Constructor Detail

      • UserClaimSource

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

        public UserClaimSource​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
    • Method Detail

      • convertFromUTF7ToUTF8

        protected String convertFromUTF7ToUTF8​(String utf7String)
        ***************************** * KEEP THIS! * * *****************************
      • process

        public net.sf.json.JSONObject process​(net.sf.json.JSONObject claims,
                                              org.oa4mp.delegation.server.ServiceTransaction transaction)
                                       throws org.oa4mp.delegation.server.server.UnsupportedScopeException
        Specified by:
        process in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        process in class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
        Throws:
        org.oa4mp.delegation.server.server.UnsupportedScopeException
      • realProcessing

        protected net.sf.json.JSONObject realProcessing​(net.sf.json.JSONObject claims,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        org.oa4mp.delegation.server.ServiceTransaction transaction)
                                                 throws org.oa4mp.delegation.server.server.UnsupportedScopeException
        Overrides:
        realProcessing in class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
        Throws:
        org.oa4mp.delegation.server.server.UnsupportedScopeException
      • getJSONAttributes

        protected net.sf.json.JSONObject getJSONAttributes​(String rawJSON)
        Take the user's json_attr string and convert it into JSON for reference.
        Parameters:
        rawJSON -
        Returns:
      • toQDL

        public org.qdl_lang.variables.QDLStem toQDL()
        Specified by:
        toQDL in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        toQDL in class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
      • isRunOnlyAtAuthorization

        public boolean isRunOnlyAtAuthorization()
        Specified by:
        isRunOnlyAtAuthorization in interface org.oa4mp.delegation.server.server.claims.ClaimSource
        Overrides:
        isRunOnlyAtAuthorization in class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl