Class LicenseClaims
The generic license claims.
public sealed class LicenseClaims
- Inheritance
-
LicenseClaims
- Inherited Members
Constructors
LicenseClaims()
Initialize a new instance. This constructor is part of the internal infrastructure. Please do not use it directly in the application code. To create a new instance from claims please use Create(IDictionary<string, object>).
public LicenseClaims()
Properties
AcrValues
The acr
claim values.
[JsonPropertyName("acr_values")]
public string AcrValues { get; set; }
Property Value
Applications
The apps
claim.
[JsonPropertyName("applications")]
public string Applications { get; set; }
Property Value
Audience
The aud
claim.
[JsonPropertyName("audience")]
public string Audience { get; set; }
Property Value
AuthorizedParty
The azp
claim.
[JsonPropertyName("authorized_party")]
public string AuthorizedParty { get; set; }
Property Value
Custom
The custom claims.
[JsonPropertyName("custom")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(DictionaryStringObjectPrimitiveJsonConverter))]
public Dictionary<string, object>? Custom { get; set; }
Property Value
Deployment
The deployment
claim.
[JsonPropertyName("deployment")]
public string? Deployment { get; set; }
Property Value
ExpiryAt
The exp
claim.
[JsonPropertyName("expiry_at")]
public DateTimeOffset ExpiryAt { get; set; }
Property Value
Id
The oid
claim.
[JsonPropertyName("id")]
public string Id { get; set; }
Property Value
IssuedAt
The iat
claim.
[JsonPropertyName("issued_at")]
public DateTimeOffset IssuedAt { get; set; }
Property Value
Issuer
The iss
claim.
[JsonPropertyName("issuer")]
public string Issuer { get; set; }
Property Value
Jti
The jti
claim.
[JsonPropertyName("jti")]
public string Jti { get; set; }
Property Value
Mode
The mode
claim.
[JsonPropertyName("mode")]
public string Mode { get; set; }
Property Value
NotBefore
The nbf
claim.
[JsonPropertyName("not_before")]
public DateTimeOffset NotBefore { get; set; }
Property Value
Subject
The sub
claim.
[JsonPropertyName("subject")]
public string Subject { get; set; }
Property Value
TenantCountry
The country
claim.
[JsonPropertyName("tenant_country")]
public string TenantCountry { get; set; }
Property Value
TenantId
The tid
claim.
[JsonPropertyName("tenant_id")]
public string TenantId { get; set; }
Property Value
TenantName
The name
claim.
[JsonPropertyName("tenant_name")]
public string TenantName { get; set; }
Property Value
Methods
Create(IDictionary<string, object>)
Creates a new instance of LicenseClaims based on the specified claims dictionary.
public static LicenseClaims Create(IDictionary<string, object> claims)
Parameters
claims
IDictionary<string, object>The source claims.