2 instantiations of SigningKey
dotnet-user-jwts (2)
_generated\2\JwtSerializerContext.SigningKey.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey((string)args[0], (string)args[1], (string)args[2], (int)args[3]),
Helpers\SigningKeysHandler.cs (1)
78var key = new SigningKey(shortId, issuer, Convert.ToBase64String(newKeyMaterial), signingKeyLength);
52 references to SigningKey
dotnet-user-jwts (52)
_generated\12\JwtSerializerContext.GetJsonTypeInfo.g.cs (2)
30if (type == typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)) 34if (type == typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]))
_generated\2\JwtSerializerContext.SigningKey.g.cs (35)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>? _SigningKey; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey> SigningKey 22get => _SigningKey ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey> Create_SigningKey(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(string), typeof(int)}, modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey), 60Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj).Id, 61Setter = static (obj, value) => __set_SigningKey_Id((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj, value!), 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey), 80Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj).Issuer, 81Setter = static (obj, value) => __set_SigningKey_Issuer((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj, value!), 88AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Issuer", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey), 100Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj).Value, 101Setter = static (obj, value) => __set_SigningKey_Value((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj, value!), 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey), 120Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj).Length, 121Setter = static (obj, value) => __set_SigningKey_Length((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)obj, value!), 128AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey).GetProperty("Length", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 138private void SigningKeySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey? value) 148writer.WriteString(PropName_Id, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)value).Id); 149writer.WriteString(PropName_Issuer, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)value).Issuer); 150writer.WriteString(PropName_Value, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)value).Value); 151writer.WriteNumber(PropName_Length, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey)value).Length); 200private static extern void __set_SigningKey_Id(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey obj, string value); 202private static extern void __set_SigningKey_Issuer(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey obj, string value); 204private static extern void __set_SigningKey_Value(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey obj, string value); 206private static extern void __set_SigningKey_Length(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey obj, int value);
_generated\3\JwtSerializerContext.SigningKeyArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]>? _SigningKeyArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]> SigningKeyArray 22get => _SigningKeyArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]> Create_SigningKeyArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey>(options, info); 47private void SigningKeyArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.SigningKey[]? value)
Helpers\JwtSerializerOptions.cs (2)
25[JsonSerializable(typeof(SigningKey))] 26[JsonSerializable(typeof(SigningKey[]))]
Helpers\SigningKeysHandler.cs (3)
38var signingKey = projectConfiguration 40.Get<SigningKey[]>() 78var key = new SigningKey(shortId, issuer, Convert.ToBase64String(newKeyMaterial), signingKeyLength);