Package org.forgerock.oauth.clients.oidc
Class Claim
java.lang.Object
org.forgerock.oauth.clients.oidc.Claim
- Direct Known Subclasses:
Claim
Models an OpenID Connect claim that has been requested in an authorize request.
See Claims in the OIDC specification.
Instances of this class are immutable.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets theLocale
of this claim.Gets the locale of this claim.getName()
Gets the name of this claim without the locale suffix.Gets the name of this claim with the locale appended after a '#' character.Get the value(s) of this claim.int
hashCode()
boolean
Get whether the claim is essential.toString()
-
Constructor Details
-
Claim
The constructor.- Parameters:
name
- the name of this Claimlocale
- the locale for this Claimvalues
- the value(s) of this Claimessential
- whether this Claim is essential
-
-
Method Details
-
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
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
Gets the name of this claim without the locale suffix.- Returns:
- the name of this claim
-
getNameWithLocale
Gets the name of this claim with the locale appended after a '#' character.- Returns:
- the name and locale of this claim
-
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
-
toString
-
equals
-
hashCode
public int hashCode()
-