Class Claim


  • @SupportedAll
    public class Claim
    extends Object
    Models an OpenID Connect claim that has been requested in an authorize request.
    • Constructor Detail

      • Claim

        public Claim​(String name)
        Creates a new Claim.
        Parameters:
        name - The name of the claim.
      • Claim

        public Claim​(String name,
                     Object value)
        Creates a new claim with single requested value.
        Parameters:
        name - The name of the claim.
        value - The requested value.
      • Claim

        public Claim​(String name,
                     List<Object> values,
                     boolean essential)
        Creates a new claim with multiple requested values.
        Parameters:
        name - The name of the claim.
        values - The requested values.
        essential - Whether this claim is deemed essential.
    • Method Detail

      • getName

        public String getName()
        Gets the name of this claim.
        Returns:
        Claim name.
      • getLocale

        public String getLocale()
        Get the locale of this claim.
        Returns:
        Claim's locale.
      • getValues

        public List<Object> getValues()
        Get the value(s) of this claim.
        Returns:
        Claim's value(s)
      • isEssential

        public boolean isEssential()
        Get whether the claim is essential.
        Returns:
        Whether the claim is essential.