CredentialIdentifier

ID_CRED_I or ID_CRED_R (RFC 9528 §3.5.3): a COSE header map that identifies a credential by reference or carries it by value.

encoded is the header map exactly as sent or received; it is what enters context_2/context_3 and the COSE_Sign1 protected header. In PLAINTEXT_2 and PLAINTEXT_3 a map holding only a 'kid' is replaced by the compact encoding of RFC 9528 §3.5.3.2 (encodeForPlaintext).

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

{ 14 : CCS }, a CWT Claims Set by value (RFC 9528 §3.5.3.1), as used for raw public keys.

Link copied to clipboard

{ 4 : kid }, the credential identifier every implementation must support (RFC 9528 §8).

Link copied to clipboard

Any other header map, such as several parameters or a type kcoap does not interpret ('kcwt', 'c5t', 'x5u'). A resolver may still understand it through header.

Link copied to clipboard

{ 33 : COSE_X509 }, an X.509 chain by value, end-entity certificate first (RFC 9360 §2). One certificate is encoded as a byte string, several as an array.

Link copied to clipboard
class X509Thumbprint(val algorithm: Int, hash: ByteArray) : CredentialIdentifier

{ 34 : [ alg, hash ] }, an X.509 certificate by thumbprint (RFC 9360 §2). algorithm is the COSE hash algorithm, for example -15 for SHA-256/64 as in RFC 9529 §2.

Properties

Link copied to clipboard

The header map encoding.

Link copied to clipboard

The header map.

Link copied to clipboard
abstract val isByValue: Boolean

Whether the credential travels inside the identifier ('kccs', 'x5chain') rather than by reference.

Functions

Link copied to clipboard

The representation in PLAINTEXT_2 / PLAINTEXT_3 (RFC 9528 §3.5.3.2).

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