PassphraseConstraints

data class PassphraseConstraints(val minLength: Int, val maxLength: Int, val requireNumerical: Boolean)

Enumeration used to convey constraints on passphrases and PINs.

This information is helpful for user interfaces when creating and validating passphrases.

Parameters

minLength

the minimum allowed length of the passphrase.

maxLength

the maximum allowed length of the passphrase.

requireNumerical

if true, each character in the passphrase must be decimal digits (0-9).

Constructors

Link copied to clipboard
constructor(minLength: Int, maxLength: Int, requireNumerical: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Get whether the constraints define a fixed length entry, when minLength == maxLength. // TODO : fix CBOR processor so this function can be refactored into a public property: val isFixedLength: Boolean get() = minLength == maxLength currently, generates PassphraseConstraints_Cbor.kt that instantiates PassphraseConstraints with an invalid constructor signature, such as, "return PassphraseConstraints(isFixedLength, minLength, maxLength, requireNumerical)"