ClaimInfo Event
Fires once for each claim.
Syntax
public event OnClaimInfoHandler OnClaimInfo; public delegate void OnClaimInfoHandler(object sender, JwtClaimInfoEventArgs e); public class JwtClaimInfoEventArgs : EventArgs { public string Name { get; } public string Value { get; } public int DataType { get; } }
Public Event OnClaimInfo As OnClaimInfoHandler Public Delegate Sub OnClaimInfoHandler(sender As Object, e As JwtClaimInfoEventArgs) Public Class JwtClaimInfoEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property Value As String Public ReadOnly Property DataType As Integer End Class
Remarks
When Decrypt, Verify or Parse is called this event will fire once for each claim in the JWT.
Name is the name of the claim.
Value is the value of the claim.
DataType specifies the JSON data type of the value. Possible values are:
- 0 (Object)
- 1 (Array)
- 2 (String)
- 3 (Number)
- 4 (Bool)
- 5 (Null)