public class OA2ClaimsUtil extends Object
Created by Jeff Gaynor
on 4/24/18 at 11:13 AM
Modifier and Type | Field and Description |
---|---|
protected OA2ServiceTransaction |
transaction |
Constructor and Description |
---|
OA2ClaimsUtil(OA2SE oa2se,
OA2ServiceTransaction transaction) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkClaim(net.sf.json.JSONObject claims,
String claimKey) |
protected void |
checkRequiredClaims(net.sf.json.JSONObject claims)
For CIL-499.
|
protected void |
checkRequiredScopes(javax.servlet.http.HttpServletRequest request,
OA2ServiceTransaction t)
Use this to check for any requires scopes that the request must have.
|
protected void |
dbg(Object c,
String x) |
void |
doPostProcessing()
This is the post-processing after ALL the claim sources have run, should there be any.
|
void |
doPreProcessing()
This is the pre-processing before ALL the claim sources have run, should there be any.
|
protected OA2ClientConfiguration |
getCC() |
protected OA2FunctorFactory |
getFF() |
protected OA2Client |
getOA2Client() |
net.sf.json.JSONObject |
initializeClaims(javax.servlet.http.HttpServletRequest request,
net.sf.json.JSONObject claims)
This method puts the required information into a claims.
|
protected boolean |
isEmpty(String x) |
net.sf.json.JSONObject |
processAuthorizationClaims(javax.servlet.http.HttpServletRequest request,
OA2ServiceTransaction t)
Creates the most basic claim object for this.
|
net.sf.json.JSONObject |
processClaims()
Gets the claims that are not done at authorization time.
|
net.sf.json.JSONObject |
setAccountingInformation(javax.servlet.http.HttpServletRequest request,
net.sf.json.JSONObject claims)
ONLY reset the accounting information (timestamps etc.)
|
protected OA2ServiceTransaction transaction
public OA2ClaimsUtil(OA2SE oa2se, OA2ServiceTransaction transaction)
public net.sf.json.JSONObject setAccountingInformation(javax.servlet.http.HttpServletRequest request, net.sf.json.JSONObject claims)
request
- claims
- public net.sf.json.JSONObject initializeClaims(javax.servlet.http.HttpServletRequest request, net.sf.json.JSONObject claims)
setAccountingInformation(HttpServletRequest, JSONObject)
instead.claims
- Throwable
protected void checkRequiredScopes(javax.servlet.http.HttpServletRequest request, OA2ServiceTransaction t) throws Throwable
request
- t
- Throwable
public net.sf.json.JSONObject processAuthorizationClaims(javax.servlet.http.HttpServletRequest request, OA2ServiceTransaction t) throws Throwable
request
- Throwable
protected OA2Client getOA2Client()
protected OA2FunctorFactory getFF()
protected OA2ClientConfiguration getCC()
public net.sf.json.JSONObject processClaims() throws Throwable
Throwable
protected void checkClaim(net.sf.json.JSONObject claims, String claimKey)
protected void checkRequiredClaims(net.sf.json.JSONObject claims)
claims
- protected boolean isEmpty(String x)
public void doPostProcessing() throws Throwable
Throwable
public void doPreProcessing() throws Throwable
Throwable
Copyright © 2019. All Rights Reserved.