public class HTTPHeaderClaimsSource extends BasicClaimsSourceImpl
OIDC_CLAIM_subsets the "sub" claim.
Created by Jeff Gaynor
on 3/15/17 at 2:41 PM
Modifier and Type | Field and Description |
---|---|
String |
caput |
groupHandler
Constructor and Description |
---|
HTTPHeaderClaimsSource(ClaimSourceConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
String |
getCaput() |
boolean |
isRunAtAuthorization()
Whether to run this during the authorization phase or not.
|
net.sf.json.JSONObject |
process(net.sf.json.JSONObject claims,
ServiceTransaction transaction)
At the most basic level, this just returns the
UserInfo object passed to it. |
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.
|
void |
setCaput(String caput) |
getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getPostProcessor, getPreProcessor, getScopes, hasConfiguration, hasJSONPostProcessoor, hasJSONPreProcessoor, isEnabled, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
public String caput
public HTTPHeaderClaimsSource(ClaimSourceConfiguration configuration)
public String getCaput()
public void setCaput(String caput)
protected net.sf.json.JSONObject realProcessing(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, ServiceTransaction transaction) throws UnsupportedScopeException
BasicClaimsSourceImpl
BasicClaimsSourceImpl.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.realProcessing
in class BasicClaimsSourceImpl
UnsupportedScopeException
public net.sf.json.JSONObject process(net.sf.json.JSONObject claims, ServiceTransaction transaction) throws UnsupportedScopeException
BasicClaimsSourceImpl
UserInfo
object passed to it. Override as you deem fit.process
in interface ClaimSource
process
in class BasicClaimsSourceImpl
UnsupportedScopeException
public boolean isRunAtAuthorization()
ClaimSource
isRunAtAuthorization
in interface ClaimSource
isRunAtAuthorization
in class BasicClaimsSourceImpl
Copyright © 2019. All Rights Reserved.