51 references to CborContentException
Microsoft.AspNetCore.Identity (5)
Passkeys\CredentialPublicKey.cs (3)
140throw new CborContentException("The COSE key encodes a private key."); 169throw new CborContentException("The COSE key encodes a private key."); 187_ => throw new CborContentException($"Unrecognized COSE crv value {crv}"),
Passkeys\Ctap2CborReader.cs (2)
21throw new CborContentException("CTAP2 canonical CBOR encoding form requires there to be a definite number of keys."); 63throw new CborContentException("Unexpected COSE key label");
System.Formats.Cbor (45)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
25throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (7)
238throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 248throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 267throw new CborContentException(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType)); 299throw new CborContentException(SR.Format(SR.Cbor_Reader_MaximumDepthExceeded, MaxDepth)); 352throw new CborContentException(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue); 408throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 416throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.Integer.cs (4)
150throw new CborContentException(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize); 171throw new CborContentException(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize); 237throw new CborContentException(SR.Cbor_Reader_InvalidCbor_InvalidIntegerEncoding); 244throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (6)
40throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode)); 59throw new CborContentException(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize); 88throw new CborContentException(SR.Cbor_Reader_InvalidCbor_KeyMissingValue); 151throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode)); 156throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode)); 172throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
71throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 82throw new CborContentException(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue); 92throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte); 99throw new CborContentException(SR.Cbor_Reader_InvalidCbor_KeyMissingValue); 107throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte); 120throw new CborContentException(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Simple.cs (1)
175throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
23throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 60throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.String.cs (7)
35throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 70throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 148throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 185throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 231throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 320throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 487throw new CborContentException(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Tag.cs (11)
69throw new CborContentException(SR.Cbor_Reader_InvalidDateTimeEncoding); 77throw new CborContentException(SR.Cbor_Reader_InvalidDateTimeEncoding); 124throw new CborContentException(SR.Cbor_Reader_InvalidUnixTimeEncoding); 131throw new CborContentException(SR.Cbor_Reader_InvalidUnixTimeEncoding); 174throw new CborContentException(SR.Cbor_Reader_InvalidBigNumEncoding); 213throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 227throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 249throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 255throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 279throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 305throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
323throw new CborContentException(SR.CoseHeaderMapCborEncodedValueNotValid);