Package com.authlete.common.types
Interface User
-
public interface UserAn interface that represents a resource owner (in the context of OAuth 2.0) or an end user (in the context of OpenID Connect).- Since:
- 1.26
- Author:
- Takahiko Kawasaki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetAttribute(String attributeName)Get the value of an attribute of the user.ObjectgetClaim(String claimName, String languageTag)Get the value of a claim of the user.StringgetSubject()Get the subject (= unique identifier) of the user.
-
-
-
Method Detail
-
getSubject
String getSubject()
Get the subject (= unique identifier) of the user.- Returns:
- The subject (= unique identifier) of the user.
-
getClaim
Object getClaim(String claimName, String languageTag)
Get the value of a claim of the user.- Parameters:
claimName- A claim name such asnameandfamily_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 inStandardClaimsclass.languageTag- A language tag such asenandja. Implementations should take this into account whenever possible. See "5.2. Claims Languages and Scripts" in OpenID Connect Core 1.0 for details.- Returns:
- The claim value.
nullif the claim value of the claim is not available.
-
-