public class AggregatedClaims extends Object
Example aggregated claims (included in a UserInfo response):
{
"_claim_names" : { "address" : "src1",
"phone_number" : "src1" },
"_claim_sources" : { "src1" : { "JWT" : "jwt_header.jwt_part2.jwt_part3" } }
}
Related specifications:
| Constructor | Description |
|---|---|
AggregatedClaims(String sourceID,
Set<String> names,
com.nimbusds.jwt.JWT claimsJWT) |
Creates a new aggregated OpenID claims instance.
|
AggregatedClaims(Set<String> names,
com.nimbusds.jwt.JWT claimsJWT) |
Creates a new aggregated OpenID claims instance, the claims source
identifier is set to a GUUID string.
|
| Modifier and Type | Method | Description |
|---|---|---|
com.nimbusds.jwt.JWT |
getClaimsJWT() |
Returns the claims JWT.
|
Set<String> |
getNames() |
Returns the claim names.
|
String |
getSourceID() |
Returns the identifier for this claims source.
|
public AggregatedClaims(Set<String> names, com.nimbusds.jwt.JWT claimsJWT)
names - The claim names. Must not be null or empty.claimsJWT - The claims JWT. Must not be null.public AggregatedClaims(String sourceID, Set<String> names, com.nimbusds.jwt.JWT claimsJWT)
sourceID - Identifier for the claims source. Must not be
null or empty string.names - The claim names. Must not be null or empty.claimsJWT - The claims JWT. Must not be null.public com.nimbusds.jwt.JWT getClaimsJWT()
public String getSourceID()
Copyright © 2018 Connect2id Ltd.. All rights reserved.