PinConstraint¶
- public class PinConstraint¶
Class describes the format constraints of the PIN (which must be enforced when changing the PIN value).
Note that the constructor is not intended to be called by user code. Such objects are constructed internally by the API.
The constraints are obtained as an array of
PinConstraint
objects by callingPin.getConstraints()
.The objects
PinConstraint
describing a constraint all have atype
, indicating the type of constraints, and optionally, the parameters of the constraint. Thetype
can be one of the following (this list may be extended in the future):"minLength"
: The number of characters in the PIN must be at least the number given in the first parameters."exactLength"
: The number of characters in the PIN must be exactly the number given in the first parameters."minMaxLength"
: The number of characters in the PIN must be between the number given in the first parameters and the number given in the second parameters."minDigits"
: The PIN must contain at least the number of the first parameters digits characters."minUpperCase"
: The PIN must contain at least the number of uppercase letters given in the first parameters."minSpecial"
: The PIN must contain at least the number of special characters given in the first parameters."minLowerCase"
: The PIN must contain at least the number of lowercase letters given in the first parameters."newOldDifferent"
: The new PIN value must be different from the old PIN value."newOldDissimilar"
: At leastthreshold
percent of the characters must differ between the new PIN and the old PIN value."maxIncDecSequence"
: There must be no sequences of the number of increasing/decreasing characters given in the first parameters."maxIncDecSequence"
: There must be no sequences of the number of increasing/decreasing characters given in the first parameters.