The object defining the minimum and maximum length of the PIN.

Hierarchy

  • PinPolicy

Properties

minLength: number

The minimum length of the PIN.

maxLength: number

The maximum length of the PIN.

Methods

  • Default constructor for PinPolicy.

    Parameters

    • minLength: number

      the minimum length of the PIN.

    • maxLength: number

      the maximum length of the PIN.

    Returns PinPolicy

    an PinPolicy instance.

  • Performs validation other than the minimum and maximum PIN length during PIN enrollment.

    Parameters

    • pin: string

      the PIN to be validated.

    • onSuccess: (() => void)

      the callback to invoke if the validation is successful.

        • (): void
        • Returns void

    • onError: ((error) => void)

      the callback to invoke with error if the validation fails.

    Returns void

  • Performs validation other than the minimum and maximum PIN length during PIN change.

    Parameters

    • pin: string

      the PIN to be validated.

    • onSuccess: (() => void)

      the callback to invoke if the validation is successful.

        • (): void
        • Returns void

    • onError: ((error) => void)

      the callback to invoke with error if the validation fails.

    Returns void

Generated using TypeDoc