X509Thumbprint

class X509Thumbprint(val algorithm: Int, hash: ByteArray) : CredentialIdentifier(source)

{ 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.

Constructors

Link copied to clipboard
constructor(algorithm: Int, hash: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard

The header map encoding.

Link copied to clipboard

The certificate hash.

Link copied to clipboard

The header map.

Link copied to clipboard
open override 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
Link copied to clipboard
suspend fun matches(crypto: CryptoBackend, der: ByteArray): Boolean

Whether this thumbprint matches the DER certificate der; false for an unsupported algorithm.

Link copied to clipboard
open override fun toString(): String