Interface PinPolicy.Builder

Enclosing interface:
PinPolicy

public static interface PinPolicy.Builder
An object that can be used to build a PinPolicy that checks for the minimum and maximum PIN length. The policy only allows lengths between 4 and 20.
  • Method Details

    • minLength

      PinPolicy.Builder minLength(int minLength)
      Sets the minimum length of the PIN. It must be a value between 4 and 20.

      Providing the minimum length of the PIN is required.

      Parameters:
      minLength - the minimum length of the PIN
      Returns:
      a Builder
    • maxLength

      PinPolicy.Builder maxLength(int maxLength)
      Sets the maximum length of the PIN. It must be a value between 4 and 20.

      Providing the minimum length of the PIN is required.

      Parameters:
      maxLength - the maximum length of the PIN
      Returns:
      a Builder
    • build

      PinPolicy build()
      Builds a PinPolicy.
      Returns:
      a PinPolicy