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 class
Claim.ClaimBuilder
Builder to keep theClaim
immutable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Locale
getJavaLocale()
Gets theLocale
of this claim.String
getLocale()
Gets the locale of this claim.String
getName()
Gets the name of this claim without the locale suffix.String
getNameWithLocale()
Gets the name of this claim with the locale appended after a '#' character.List<Object>
getValues()
Get the value(s) of this claim.int
hashCode()
boolean
isEssential()
Get whether the claim is essential.String
toString()
-
-
-
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 theLocale
of 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
-
-