Show / Hide Table of Contents

Class JsonWebTokenClaim

An individual JWT claim.

Inheritance
object
JsonWebTokenClaim
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ApigatewayService.Models
Assembly: OCI.DotNetSDK.Apigateway.dll
Syntax
public class JsonWebTokenClaim

Properties

IsRequired

Declaration
[JsonProperty(PropertyName = "isRequired")]
public bool? IsRequired { get; set; }
Property Value
Type Description
bool?

Whether the claim is required to be present in the JWT or not. If set to "false", the claim values will be matched only if the claim is present in the JWT.

Key

Declaration
[Required(ErrorMessage = "Key is required.")]
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
Property Value
Type Description
string

Name of the claim.

Remarks

Required

Values

Declaration
[JsonProperty(PropertyName = "values")]
public List<string> Values { get; set; }
Property Value
Type Description
List<string>

The list of acceptable values for a given claim. If this value is "null" or empty and "isRequired" set to "true", then the presence of this claim in the JWT is validated.

In this article
Back to top