public class FSClaimSource extends BasicClaimsSourceImpl
Created by Jeff Gaynor
on 10/21/19 at 12:49 PM
Modifier and Type | Field and Description |
---|---|
static String |
FILE_PATH_KEY
The name of the property in the configuration that specifies where the file is that holds
the claims for this source.
|
groupHandler
Constructor and Description |
---|
FSClaimSource(ClaimSourceConfiguration config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRunAtAuthorization()
Whether to run this during the authorization phase or not.
|
protected String |
readFile(String path) |
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.
|
getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getPostProcessor, getPreProcessor, getScopes, hasConfiguration, hasJSONPostProcessoor, hasJSONPreProcessoor, isEnabled, process, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
public static String FILE_PATH_KEY
public FSClaimSource(ClaimSourceConfiguration config)
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
protected String readFile(String path) throws IOException
IOException
public boolean isRunAtAuthorization()
ClaimSource
isRunAtAuthorization
in interface ClaimSource
isRunAtAuthorization
in class BasicClaimsSourceImpl
Copyright © 2019. All Rights Reserved.