2 instantiations of BufferSource
Microsoft.AspNetCore.Identity (2)
Passkeys\BufferSource.cs (2)
33=> new(bytes); 41return new(buffer);
122 references to BufferSource
Microsoft.AspNetCore.Identity (122)
IdentityJsonSerializerContext.AuthenticatorAssertionResponse.g.cs (24)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse(){ AuthenticatorData = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Signature = (global::Microsoft.AspNetCore.Identity.BufferSource)args[1], UserHandle = (global::Microsoft.AspNetCore.Identity.BufferSource)args[2], ClientDataJSON = (global::Microsoft.AspNetCore.Identity.BufferSource)args[3] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("AuthenticatorData", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("Signature", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info1); 97var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse).GetProperty("UserHandle", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 115properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info2); 117var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorResponse).GetProperty("ClientDataJSON", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 135properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info3); 155global::Microsoft.AspNetCore.Identity.BufferSource __value_AuthenticatorData = ((global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse)value).AuthenticatorData; 161global::Microsoft.AspNetCore.Identity.BufferSource __value_Signature = ((global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse)value).Signature; 167global::Microsoft.AspNetCore.Identity.BufferSource __value_UserHandle = ((global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse)value).UserHandle; 173global::Microsoft.AspNetCore.Identity.BufferSource __value_ClientDataJSON = ((global::Microsoft.AspNetCore.Identity.AuthenticatorResponse)value).ClientDataJSON; 188ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource), 197ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource), 206ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource), 215ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.AuthenticatorAttestationResponse.g.cs (12)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse(){ AttestationObject = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Transports = (string[])args[1], ClientDataJSON = (global::Microsoft.AspNetCore.Identity.BufferSource)args[2] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse).GetProperty("AttestationObject", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 94var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 109AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.AuthenticatorResponse).GetProperty("ClientDataJSON", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 112properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info2); 132global::Microsoft.AspNetCore.Identity.BufferSource __value_AttestationObject = ((global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse)value).AttestationObject; 144global::Microsoft.AspNetCore.Identity.BufferSource __value_ClientDataJSON = ((global::Microsoft.AspNetCore.Identity.AuthenticatorResponse)value).ClientDataJSON; 159ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource), 177ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.BufferSource.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.BufferSource>? _BufferSource; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.BufferSource> BufferSource 22get => _BufferSource ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.BufferSource>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.BufferSource)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.BufferSource> Create_BufferSource(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.BufferSource>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.BufferSource> jsonTypeInfo)) 29global::System.Text.Json.Serialization.JsonConverter converter = ExpandConverter(typeof(global::Microsoft.AspNetCore.Identity.BufferSource), new global::Microsoft.AspNetCore.Identity.BufferSourceJsonConverter(), options); 30jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.AspNetCore.Identity.BufferSource> (options, converter);
IdentityJsonSerializerContext.CollectedClientData.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.CollectedClientData(){ Type = (string)args[0], Challenge = (global::Microsoft.AspNetCore.Identity.BufferSource)args[1], Origin = (string)args[2], CrossOrigin = (bool?)args[3], TopOrigin = (string)args[4], TokenBinding = (global::Microsoft.AspNetCore.Identity.TokenBinding)args[5] }, 74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.CollectedClientData).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info1); 200global::Microsoft.AspNetCore.Identity.BufferSource __value_Challenge = ((global::Microsoft.AspNetCore.Identity.CollectedClientData)value).Challenge; 246ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
42if (type == typeof(global::Microsoft.AspNetCore.Identity.BufferSource))
IdentityJsonSerializerContext.PublicKeyCredentialAuthenticatorAssertionResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>(){ Id = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Type = (string)args[1], ClientExtensionResults = (global::System.Text.Json.JsonElement)args[2], Response = (global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse)args[3], AuthenticatorAttachment = (string)args[4] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 176global::Microsoft.AspNetCore.Identity.BufferSource __value_Id = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAssertionResponse>)value).Id; 209ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.PublicKeyCredentialAuthenticatorAttestationResponse.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>(){ Id = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Type = (string)args[1], ClientExtensionResults = (global::System.Text.Json.JsonElement)args[2], Response = (global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse)args[3], AuthenticatorAttachment = (string)args[4] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 176global::Microsoft.AspNetCore.Identity.BufferSource __value_Id = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredential<global::Microsoft.AspNetCore.Identity.AuthenticatorAttestationResponse>)value).Id; 209ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.PublicKeyCredentialCreationOptions.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions(){ Rp = (global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRpEntity)args[0], User = (global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity)args[1], Challenge = (global::Microsoft.AspNetCore.Identity.BufferSource)args[2], PubKeyCredParams = (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>)args[3], Timeout = (ulong?)args[4], ExcludeCredentials = (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>)args[5], AuthenticatorSelection = (global::Microsoft.AspNetCore.Identity.AuthenticatorSelectionCriteria)args[6], Hints = (global::System.Collections.Generic.IReadOnlyList<string>)args[7], Attestation = (string)args[8], AttestationFormats = (global::System.Collections.Generic.IReadOnlyList<string>)args[9], Extensions = (global::System.Text.Json.JsonElement?)args[10] }, 97var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 115properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info2); 315global::Microsoft.AspNetCore.Identity.BufferSource __value_Challenge = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Challenge; 395ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.PublicKeyCredentialDescriptor.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor(){ Type = (string)args[0], Id = (global::Microsoft.AspNetCore.Identity.BufferSource)args[1], Transports = (global::System.Collections.Generic.IReadOnlyList<string>)args[2] }, 74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info1); 139global::Microsoft.AspNetCore.Identity.BufferSource __value_Id = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor)value).Id; 169ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.PublicKeyCredentialRequestOptions.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions(){ Challenge = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Timeout = (ulong?)args[1], RpId = (string)args[2], AllowCredentials = (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>)args[3], UserVerification = (string)args[4], Hints = (global::System.Collections.Generic.IReadOnlyList<string>)args[5], Extensions = (global::System.Text.Json.JsonElement?)args[6] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Challenge", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 213global::Microsoft.AspNetCore.Identity.BufferSource __value_Challenge = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions)value).Challenge; 262ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
IdentityJsonSerializerContext.PublicKeyCredentialUserEntity.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity(){ Id = (global::Microsoft.AspNetCore.Identity.BufferSource)args[0], Name = (string)args[1], DisplayName = (string)args[2] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Identity.BufferSource> 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Identity.BufferSource), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Identity.BufferSource>(options, info0); 135global::Microsoft.AspNetCore.Identity.BufferSource __value_Id = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialUserEntity)value).Id; 160ParameterType = typeof(global::Microsoft.AspNetCore.Identity.BufferSource),
PasskeyHandler.cs (5)
58Id = BufferSource.FromString(userEntity.Id), 62Challenge = BufferSource.FromBytes(challenge), 102Id = BufferSource.FromBytes(p.CredentialId), 119Challenge = BufferSource.FromBytes(challenge), 153Id = BufferSource.FromBytes(p.CredentialId),
Passkeys\AuthenticatorAssertionResponse.cs (3)
18public required BufferSource AuthenticatorData { get; init; } 23public required BufferSource Signature { get; init; } 28public BufferSource? UserHandle { get; init; }
Passkeys\AuthenticatorAttestationResponse.cs (1)
18public required BufferSource AttestationObject { get; init; }
Passkeys\AuthenticatorResponse.cs (1)
16public required BufferSource ClientDataJSON { get; init; }
Passkeys\BufferSource.cs (14)
20internal sealed class BufferSource : IEquatable<BufferSource> 30/// Creates a new instance of <see cref="BufferSource"/> from a byte array. 32public static BufferSource FromBytes(ReadOnlyMemory<byte> bytes) 36/// Creates a new instance of <see cref="BufferSource"/> from a string. 38public static BufferSource FromString(string value) 68/// Performs a value-based equality comparison with another <see cref="BufferSource"/> instance. 70public bool Equals(BufferSource? other) 82=> obj is BufferSource other && Equals(other); 89/// Performs a value-based equality comparison between two <see cref="BufferSource"/> instances. 91public static bool operator ==(BufferSource? left, BufferSource? right) 107/// Performs a value-based inequality comparison between two <see cref="BufferSource"/> instances. 109public static bool operator !=(BufferSource? left, BufferSource? right)
Passkeys\BufferSourceJsonConverter.cs (4)
13internal sealed class BufferSourceJsonConverter : JsonConverter<BufferSource> 17public override BufferSource? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 33return BufferSource.FromBytes(bytes); 36public override void Write(Utf8JsonWriter writer, BufferSource value, JsonSerializerOptions options)
Passkeys\CollectedClientData.cs (1)
25public required BufferSource Challenge { get; init; }
Passkeys\PublicKeyCredential.cs (1)
20public required BufferSource Id { get; init; }
Passkeys\PublicKeyCredentialCreationOptions.cs (1)
29public required BufferSource Challenge { get; init; }
Passkeys\PublicKeyCredentialDescriptor.cs (1)
22public required BufferSource Id { get; init; }
Passkeys\PublicKeyCredentialRequestOptions.cs (1)
19public required BufferSource Challenge { get; init; }
Passkeys\PublicKeyCredentialUserEntity.cs (1)
17public required BufferSource Id { get; init; }