Class AggregatedClaims
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.AggregatedClaims
Aggregated OpenID claims set.
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:
- OpenID Connect Core 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatedClaims(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. -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.jwt.JWTReturns the claims JWT.getNames()Returns the claim names.Returns the identifier for this claims source.
-
Constructor Details
-
AggregatedClaims
Creates a new aggregated OpenID claims instance, the claims source identifier is set to a GUUID string.- Parameters:
names- The claim names. Must not benullor empty.claimsJWT- The claims JWT. Must not benull.
-
AggregatedClaims
Creates a new aggregated OpenID claims instance.- Parameters:
sourceID- Identifier for the claims source. Must not benullor empty string.names- The claim names. Must not benullor empty.claimsJWT- The claims JWT. Must not benull.
-
-
Method Details
-
getClaimsJWT
Returns the claims JWT.- Returns:
- The claims JWT.
-
getSourceID
Returns the identifier for this claims source.- Returns:
- The source identifier.
-
getNames
Returns the claim names.- Returns:
- The claim names.
-