public class DistributedClaims extends Object
Example distributed claims with an access token (included in a UserInfo response):
{
"_claim_names" : { "credit_score" : "src1" },
"_claim_sources" : { "src1" : { "endpoint" : "https://creditagency.example.com/claims_here",
"access_token" : "ksj3n283dke" } }
}
Example distributed claims without a specified access token (included in a UserInfo response):
{
"_claim_names" : { "payment_info" : "src2",
"shipping_address" : "src2" },
"_claim_sources" : { "src2" : { "endpoint" : "https://bank.example.com/claim_source" } }
}
Related specifications:
| Constructor | Description |
|---|---|
DistributedClaims(String sourceID,
Set<String> names,
URI sourceEndpoint,
AccessToken accessToken) |
Creates a new aggregated OpenID claims instance.
|
DistributedClaims(Set<String> names,
URI sourceEndpoint,
AccessToken accessToken) |
Creates a new aggregated OpenID claims instance, the claims source
identifier is set to a GUUID string.
|
| Modifier and Type | Method | Description |
|---|---|---|
AccessToken |
getAccessToken() |
Returns the access token for retrieving the claims at the source
endpoint.
|
Set<String> |
getNames() |
Returns the claim names.
|
URI |
getSourceEndpoint() |
Returns the claims source endpoint.
|
String |
getSourceID() |
Returns the identifier for this claims source.
|
public DistributedClaims(Set<String> names, URI sourceEndpoint, AccessToken accessToken)
names - The claim names. Must not be null or
empty.sourceEndpoint - The claims source endpoint. Must not be
null.accessToken - Access token for retrieving the claims at the
source endpoint, null if not
specified.public DistributedClaims(String sourceID, Set<String> names, URI sourceEndpoint, AccessToken accessToken)
sourceID - Identifier for the claims source. Must not be
null or empty string.names - The claim names. Must not be null or
empty.sourceEndpoint - The claims source endpoint. Must not be
null.accessToken - Access token for retrieving the claims at the
source endpoint, null if not
specified.public URI getSourceEndpoint()
public AccessToken getAccessToken()
null if not specified.public String getSourceID()
Copyright © 2018 Connect2id Ltd.. All rights reserved.