Class TestClaimSource
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
- org.oa4mp.server.loader.oauth2.claims.TestClaimSource
-
- All Implemented Interfaces:
ClaimSource
,Serializable
public class TestClaimSource extends BasicClaimsSourceImpl
This is to test creating claim sources using the introspection abilities of OA4MP. It has to live in this package (rather than in some test harness) because part of the contract is that it is resolvable at runtime and test code is not available.
Generally, this does virtually nothing except spit out a few dummy claims. It is therefore of no use and can be safely ignored. It's function is to be an example of how to write a custom claim source.
Created by Jeff Gaynor
on 10/6/20 at 8:30 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
groupHandler
-
-
Constructor Summary
Constructors Constructor Description TestClaimSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected net.sf.json.JSONObject
realProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, ServiceTransaction transaction)
This is the actual place to put your code that only processes the claim source.-
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, isRunAtAuthorization, process, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes, toQDL
-
-
-
-
Method Detail
-
realProcessing
protected net.sf.json.JSONObject realProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, ServiceTransaction transaction) throws UnsupportedScopeException
Description copied from class:BasicClaimsSourceImpl
This is the actual place to put your code that only processes the claim source. TheBasicClaimsSourceImpl.process(JSONObject, HttpServletRequest, ServiceTransaction)
calls wrap this and invoke the pre/post processor for you. Your code should take whatever metadata is for the user and add it to the claims object.- Overrides:
realProcessing
in classBasicClaimsSourceImpl
- Returns:
- Throws:
UnsupportedScopeException
-
-