AuthenticationCredential

An authentication credential, CRED_I or CRED_R (RFC 9528 §3.5.2): the exact CBOR item EDHOC hashes and MACs, together with the authentication public key it carries.

  • X.509: CRED_x is the DER certificate as a CBOR byte string (RFC 9360), parsed by kcoap-crypto's X509Certificate. Use x509.

  • CCS: CRED_x is the untagged CWT Claims Set with a COSE_Key in its 'cnf' claim; a raw public key is a CCS too. Use ccs; the bytes are kept as given, never re-encoded (RFC 9528 §3.5.2).

CWTs and C509 certificates are not supported.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The certificate, for X.509 credentials.

Link copied to clipboard

The claims set, for CCS credentials.

Link copied to clipboard

CRED_x: the CBOR item that enters MAC_2/MAC_3, the signatures and TH_3/TH_4.

Link copied to clipboard

The type of the authentication key.

Link copied to clipboard

The key identifier this credential is known by, for ID_CRED_x = { 4 : kid } (RFC 9528 §3.5.3): the COSE_Key 'kid' of a CCS, or the one given to x509.

Link copied to clipboard

The authentication public key in the raw encoding of keyType.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String