public interface ClaimsSource extends Lifecycle
Claims sources can be:
Modifier and Type | Method and Description |
---|---|
com.nimbusds.openid.connect.sdk.claims.UserInfo |
getClaims(com.nimbusds.oauth2.sdk.id.Subject subject,
Set<String> claims,
List<com.nimbusds.langtag.LangTag> claimsLocales)
Requests claims for the specified subject.
|
Set<String> |
supportedClaims()
Returns the names of the supported OpenID Connect claims.
|
Set<String> supportedClaims()
Example:
name email email_verified
sub
(subject) claim name.com.nimbusds.openid.connect.sdk.claims.UserInfo getClaims(com.nimbusds.oauth2.sdk.id.Subject subject, Set<String> claims, List<com.nimbusds.langtag.LangTag> claimsLocales) throws Exception
subject
- The subject. Must not be null
.claims
- The names of the requested claims, with
optional language tags. Must not be
null
.claimsLocales
- The preferred languages and scripts for the
claims to return, null
if not
specified.null
if the subject wasn't found or the
claims source is disabled
.Exception
- If retrieval of the claims failed.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.