LocalCredential
class LocalCredential(val credential: AuthenticationCredential, val identifier: CredentialIdentifier, val privateKey: PrivateKey, val authentication: AuthenticationKind)(source)
This endpoint's own authentication material: CRED_x, how the peer is told about it (ID_CRED_x), and the handle of the private authentication key, which never leaves its dev.kcoap.crypto.CryptoBackend.
authentication fixes what the key is for. RFC 9528 §9.2 discourages using one key both to sign and for static Diffie-Hellman, and a P-256 key could do either, so the purpose is explicit.
Constructors
Link copied to clipboard
constructor(credential: AuthenticationCredential, identifier: CredentialIdentifier, privateKey: PrivateKey, authentication: AuthenticationKind)