Class UserClaimSource
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
- org.cilogon.oauth2.servlet.claims.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
-
-
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
-
-
-
-
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, org.oa4mp.delegation.server.ServiceTransaction transaction) throws org.oa4mp.delegation.server.server.UnsupportedScopeException
- Specified by:
process
in interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource
- Overrides:
process
in classorg.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 classorg.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 interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource
- Overrides:
toQDL
in classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
isRunOnlyAtAuthorization
public boolean isRunOnlyAtAuthorization()
- Specified by:
isRunOnlyAtAuthorization
in interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource
- Overrides:
isRunOnlyAtAuthorization
in classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
-