public interface User
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attributeName)
Get the value of an attribute of the user.
|
Object |
getClaim(String claimName,
String languageTag)
Get the value of a claim of the user.
|
String |
getSubject()
Get the subject (= unique identifier) of the user.
|
String getSubject()
Object getClaim(String claimName, String languageTag)
claimName
- A claim name such as name
and family_name
.
Standard claim names are listed in "5.1. Standard Claims" of OpenID
Connect Core 1.0. Java constant values that represent the
standard claims are listed in StandardClaims
class.languageTag
- A language tag such as en
and ja
. Implementations
should take this into account whenever possible. See "5.2. Claims Languages and Scripts" in OpenID
Connect Core 1.0 for details.null
if the claim value of the claim
is not available.Copyright © 2023. All rights reserved.