Class UserClaimSource
- java.lang.Object
-
- edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
-
- org.cilogon.oauth2.servlet.claims.UserClaimSource
-
- All Implemented Interfaces:
edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes
,edu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
,Serializable
public class UserClaimSource extends edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl implements edu.uiuc.ncsa.oa4mp.delegation.oa2.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
-
-
Constructor Summary
Constructors Constructor Description UserClaimSource(edu.uiuc.ncsa.qdl.variables.QDLStem stem)
UserClaimSource(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
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, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)
protected net.sf.json.JSONObject
realProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)
edu.uiuc.ncsa.qdl.variables.QDLStem
toQDL()
-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
fromQDL, getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getPostProcessor, getPreProcessor, getScopes, hasConfiguration, hasJSONPostProcessor, hasJSONPreProcessor, isEnabled, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
-
-
-
-
Method Detail
-
getServiceEnvironment
public CILogonOA2ServiceEnvironment getServiceEnvironment()
-
convertFromUTF7ToUTF8
protected String convertFromUTF7ToUTF8(String utf7String)
***************************** * KEEP THIS! * * *****************************
-
process
public net.sf.json.JSONObject process(net.sf.json.JSONObject claims, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction) throws edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
- Specified by:
process
in interfaceedu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
- Overrides:
process
in classedu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
- Throws:
edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
-
realProcessing
protected net.sf.json.JSONObject realProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction) throws edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
- Overrides:
realProcessing
in classedu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
- Throws:
edu.uiuc.ncsa.oa4mp.delegation.oa2.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 edu.uiuc.ncsa.qdl.variables.QDLStem toQDL()
- Specified by:
toQDL
in interfaceedu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
- Overrides:
toQDL
in classedu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
-
isRunOnlyAtAuthorization
public boolean isRunOnlyAtAuthorization()
- Specified by:
isRunOnlyAtAuthorization
in interfaceedu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
- Overrides:
isRunOnlyAtAuthorization
in classedu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
-
-