public interface ClaimSource
Created by Jeff Gaynor
on 8/17/15 at 2:28 PM
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getClaims()
in order to support server discovery, every plugin must enumerate whatever claims it may
serve.
|
ClaimSourceConfiguration |
getConfiguration() |
Script |
getPostProcessor()
See comment in
getPreProcessor() . |
Script |
getPreProcessor()
This is the preprocessor after it has run.
|
Collection<String> |
getScopes()
A list of scopes that this source supports.
|
boolean |
hasConfiguration() |
boolean |
isEnabled() |
boolean |
isRunAtAuthorization()
Whether to run this during the authorization phase or not.
|
net.sf.json.JSONObject |
process(net.sf.json.JSONObject claims,
javax.servlet.http.HttpServletRequest request,
ServiceTransaction transaction) |
net.sf.json.JSONObject |
process(net.sf.json.JSONObject claims,
ServiceTransaction transaction)
A
UserInfo object and the current service transaction are supplied. |
void |
setConfiguration(ClaimSourceConfiguration configuration)
This passes in a
JSONObject that is in turn used to configure the source. |
void |
setScopes(Collection<String> scopes)
Set the scopes for this source.
|
void setConfiguration(ClaimSourceConfiguration configuration)
JSONObject
that is in turn used to configure the source. It is up to the implementaton
to make sense of this.configuration
- ClaimSourceConfiguration getConfiguration()
boolean hasConfiguration()
net.sf.json.JSONObject process(net.sf.json.JSONObject claims, ServiceTransaction transaction) throws UnsupportedScopeException
UserInfo
object and the current service transaction are supplied. The contract is that
this handler will receive a claims object with standard information in place for
the request, but may then populate a claims object and return it. It is up to the source to
run the pre and post processors before actually invoking the claims.claims
- transaction
- UnsupportedScopeException
net.sf.json.JSONObject process(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, ServiceTransaction transaction) throws UnsupportedScopeException
UnsupportedScopeException
void setScopes(Collection<String> scopes)
scopes
- Collection<String> getScopes()
Collection<String> getClaims()
boolean isEnabled()
boolean isRunAtAuthorization()
Script getPreProcessor()
Script getPostProcessor()
getPreProcessor()
.Copyright © 2019. All Rights Reserved.