Package org.forgerock.oauth.clients.oidc
Class Claim
- java.lang.Object
-
- org.forgerock.oauth.clients.oidc.Claim
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClaim.ClaimBuilderBuilder to keep theClaimimmutable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LocalegetJavaLocale()Gets theLocaleof this claim.StringgetLocale()Gets the locale of this claim.StringgetName()Gets the name of this claim without the locale suffix.StringgetNameWithLocale()Gets the name of this claim with the locale appended after a '#' character.List<Object>getValues()Get the value(s) of this claim.inthashCode()booleanisEssential()Get whether the claim is essential.StringtoString()
-
-
-
Method Detail
-
getLocale
public String getLocale()
Gets the locale of this claim.See Claims Languages and Scripts in the OIDC specification.
- Returns:
- the locale language tag of this claim, or null if none exists
-
getJavaLocale
public Locale getJavaLocale()
Gets theLocaleof this claim.See Claims Languages and Scripts in the OIDC specification.
- Returns:
- the locale of this claim, or null if none exists
-
getName
public String getName()
Gets the name of this claim without the locale suffix.- Returns:
- the name of this claim
-
getNameWithLocale
public String getNameWithLocale()
Gets the name of this claim with the locale appended after a '#' character.- Returns:
- the name and locale of this claim
-
getValues
public List<Object> getValues()
Get the value(s) of this claim.- Returns:
- the value(s) of this claim
-
isEssential
public boolean isEssential()
Get whether the claim is essential.- Returns:
- whether the claim is essential
-
-