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