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.OA2ScopesThis 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 StringconvertFromUTF7ToUTF8(String utf7String)***************************** * KEEP THIS! * * *****************************protected net.sf.json.JSONObjectgetJSONAttributes(String rawJSON)Take the user's json_attr string and convert it into JSON for reference.CILogonOA2ServiceEnvironmentgetServiceEnvironment()booleanisRunOnlyAtAuthorization()net.sf.json.JSONObjectprocess(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction)protected net.sf.json.JSONObjectrealProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, org.oa4mp.delegation.server.ServiceTransaction transaction)org.qdl_lang.variables.QDLStemtoQDL()
-
-
-
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:
processin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
processin 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:
realProcessingin 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:
toQDLin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
toQDLin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
isRunOnlyAtAuthorization
public boolean isRunOnlyAtAuthorization()
- Specified by:
isRunOnlyAtAuthorizationin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
isRunOnlyAtAuthorizationin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
-