Package org.bouncycastle.cbor


package org.bouncycastle.cbor
A reader and writer for Deterministically Encoded CBOR (RFC 8949, Sections 4.2.1 and 4.2.2), scoped to the profile required by CBOR-based PKI formats such as C509 certificates (draft-ietf-cose-cbor-encoded-cert-20). Indefinite-length items, non-shortest-form integers and floating-point values are deliberately not supported.

This package is a self-contained CBOR layer: it depends only on the JDK and the basic org.bouncycastle.util helpers, and no ASN.1 library type appears in it. The bridge between CBOR and the ASN.1 object model lives in the format-specific sub-packages (org.bouncycastle.cbor.c509), not here.

  • Classes
    Class
    Description
    A decoder for Deterministically Encoded CBOR (RFC 8949, Sections 4.2.1 and 4.2.2), restricted to the profile needed by CBOR-based PKI formats such as C509 (draft-ietf-cose-cbor-encoded-cert-20).
    An encoder producing Deterministically Encoded CBOR (RFC 8949, Sections 4.2.1 and 4.2.2).
    CBOR major type constants, as defined in Section 3.1 of RFC 8949.