CreateKeySettings

open class CreateKeySettings(val algorithm: Algorithm = Algorithm.ESP256, val nonce: ByteString = ByteString(), val userAuthenticationRequired: Boolean = false)

Base class for key creation settings.

This can be used for any conforming SecureArea implementations.although such implementations will typically supply their own implementations with additional settings to e.g. configure user authentication, passphrase protections, challenges for attestations, and other things.

Parameters

algorithm

A fully specified Algorithm, e.g. Algorithm.ESP256.

nonce

a nonce, to prove freshness of the KeyAttestation produced by the SecureArea implementation. Note that not all implementations provide key attestations in which case the nonce is ignored.

userAuthenticationRequired

true if user authentication is required, false otherwise. Some SecureArea implementations may take options to control more precisely what kind of user authentication is required, for example timeouts and whether knowledge factors or inherence factors can be used.

Inheritors

Constructors

Link copied to clipboard
constructor(algorithm: Algorithm = Algorithm.ESP256, nonce: ByteString = ByteString(), userAuthenticationRequired: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val nonce: ByteString
Link copied to clipboard