Package org.bouncycastle.cbor.c509


package org.bouncycastle.cbor.c509
Support for C509 certificates - the CBOR encoding of X.509 certificates, certification requests, certification request templates and private key structures defined in draft-ietf-cose-cbor-encoded-cert-20. Covers both natively signed C509 structures (type 2, signed over the CBOR itself) and invertible CBOR re-encodings of DER X.509 and RFC 2986 structures (type 3). This is the layer where CBOR meets the ASN.1 object model: the value types materialize X.500 names, extensions and key/algorithm structures as their org.bouncycastle.asn1 forms, while the underlying org.bouncycastle.cbor codec package stays ASN.1-free. High level holder and builder classes are in org.bouncycastle.cert.c509 in the bcpkix distribution.
  • Classes
    Class
    Description
    A C509 AlgorithmIdentifier, either a registered CBOR int or an unwrapped CBOR OID (RFC 9090) optionally followed by the DER-encoded parameters as a CBOR byte string (Sections 3.1.3 and 3.1.7 of draft-ietf-cose-cbor-encoded-cert-20):
    A single C509 certification request attribute (Section 4.3 of draft-ietf-cose-cbor-encoded-cert-20):
    The C509 RDN Attributes Registry, Section 8.6 of draft-ietf-cose-cbor-encoded-cert-20.
    A C509 certificate (Section 3 of draft-ietf-cose-cbor-encoded-cert-20):
    A C509 certification request (Section 4 of draft-ietf-cose-cbor-encoded-cert-20):
    A C509 certification request template (Section 4.4 of draft-ietf-cose-cbor-encoded-cert-20), returned by an EST server in response to a GET /csrattrs request to tell the client what its certification request should contain:
    An ExtensionTemplate group (Section 4.4): an extension with an "optional" flag and a prescribed or partial value.
    An RDNAttributeTemplate group (Section 4.4): an attribute type with its minimum and maximum number of occurrences and an optional prescribed value.
    Options controlling the conversion of an X.509 certificate to C509.
    A single C509 extension (Section 3.1.10 of draft-ietf-cose-cbor-encoded-cert-20):
    The C509 extensions field (Section 3.1.10 of draft-ietf-cose-cbor-encoded-cert-20):
    The C509 Extensions Registry, Section 8.8 of draft-ietf-cose-cbor-encoded-cert-20.
    The media types registered for C509 structures, Section 8.18 of draft-ietf-cose-cbor-encoded-cert-20.
    A C509 Name (Section 3.1.4 of draft-ietf-cose-cbor-encoded-cert-20):
    A C509PEM structure (Section 3.6 of draft-ietf-cose-cbor-encoded-cert-20):
    A C509 private key structure (Section 3.6 of draft-ietf-cose-cbor-encoded-cert-20):
    The C509 Public Key Algorithms Registry, Section 8.15 of draft-ietf-cose-cbor-encoded-cert-20.
    The C509 Signature Algorithms Registry, Section 8.14 of draft-ietf-cose-cbor-encoded-cert-20.
    The COSE_C509 structure (Section 3.4 of draft-ietf-cose-cbor-encoded-cert-20):