Reason

What is wrong with a file.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Since

1.0.0

Entries

Link copied to clipboard

The bytes are not valid BER-TLV (or DER, for the security object): a tag or length is cut off or not allowed, or a data object is longer than the bytes left.

Link copied to clipboard

Data objects are nested deeper than the reader follows.

Link copied to clipboard

The file does not start with the tag its file type requires.

Link copied to clipboard

A data object the file type requires is missing.

Link copied to clipboard

A data object has a length, content or form (primitive or constructed) its definition does not allow.

Link copied to clipboard

The security object is ASN.1 but not a CMS SignedData.

Link copied to clipboard

The SignedData does not hold the content type the file needs, or holds no content.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.