Package-level declarations

Types

Link copied to clipboard
class CertificateFormatException(message: String, cause: Throwable? = null) : KcoapException

A certificate or SubjectPublicKeyInfo that kcoap cannot use: malformed DER (ITU-T X.690), a structure that is not an X.509 certificate (RFC 5280 §4.1), or a public key algorithm or curve kcoap does not support. The parsers in this package throw nothing else for any input, so DER from a peer cannot surface as an IllegalArgumentException. A KcoapException.

Link copied to clipboard

A decoded SubjectPublicKeyInfo (RFC 5280 §4.1.2.7): the public key of an X.509 certificate, and on its own the raw public key of DTLS RawPublicKey mode (RFC 7250 §3). keyType and publicKey are what dev.kcoap.crypto.CryptoBackend.verify and keyAgreement take.

Link copied to clipboard

The parts of an X.509 certificate (RFC 5280) that kcoap's protocols need: the subject public key from the SubjectPublicKeyInfo, and the subject's common name for identity checks. EDHOC takes certificates as CRED_x and in x5chain (RFC 9528 §3.5.2, RFC 9360, Appendix D.2); DTLS certificate mode will take them in the same way.