56 references to CborContentException
Microsoft.AspNetCore.Identity (7)
Passkeys\CredentialPublicKey.cs (5)
140
throw new
CborContentException
("The COSE key encodes a private key.");
166
throw new
CborContentException
($"The COSE key type '{kty}' is not valid for crv '{crv}'.");
173
throw new
CborContentException
($"The COSE algorithm '{alg}' is not valid for kty '{kty}' and crv '{crv}'.");
186
throw new
CborContentException
("The COSE key encodes a private key.");
204
_ => throw new
CborContentException
($"Unrecognized COSE crv value {crv}"),
Passkeys\Ctap2CborReader.cs (2)
21
throw new
CborContentException
("CTAP2 canonical CBOR encoding form requires there to be a definite number of keys.");
63
throw new
CborContentException
("Unexpected COSE key label");
System.Formats.Cbor (48)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
25
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (8)
238
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
244
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
254
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
273
throw new
CborContentException
(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType));
305
throw new
CborContentException
(SR.Format(SR.Cbor_Reader_MaximumDepthExceeded, MaxDepth));
358
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
414
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
422
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.Integer.cs (4)
150
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
171
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
237
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidIntegerEncoding);
244
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (6)
40
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode));
59
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
88
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
151
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode));
156
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
172
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (7)
68
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
77
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
88
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
98
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
105
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
113
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
126
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Simple.cs (2)
175
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
185
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidSimpleValueEncoding);
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
23
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
60
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.String.cs (7)
35
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
70
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
148
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
185
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
231
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
320
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
487
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Tag.cs (11)
69
throw new
CborContentException
(SR.Cbor_Reader_InvalidDateTimeEncoding);
77
throw new
CborContentException
(SR.Cbor_Reader_InvalidDateTimeEncoding);
126
throw new
CborContentException
(SR.Cbor_Reader_InvalidUnixTimeEncoding);
133
throw new
CborContentException
(SR.Cbor_Reader_InvalidUnixTimeEncoding);
182
throw new
CborContentException
(SR.Cbor_Reader_InvalidBigNumEncoding);
221
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
235
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
257
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
263
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
287
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
313
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
323
throw new
CborContentException
(SR.CoseHeaderMapCborEncodedValueNotValid);