SCM iOS API
|
Class describes the format constraints of the PIN (which must be enforced when changing the PIN value). More...
Inherits NSObject.
Instance Methods | |
(NSString *) | - getType |
(NSArray *) | - parameters |
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.
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 calling Pin#getConstraints:.
The objects PinConstraint describing a constraint all have a type
, indicating the type of the constraint, and optionally, the parameters of the constraint. The type
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 parameter. "exactLength"
: The number of characters in the PIN must be exactly the number given in the first parameter. "minMaxLength"
: The number of characters in the PIN must be between the number given in the first parameter and the number given in the second parameter. "minDigits"
: The PIN must contain at least the number of the first parameter digits characters. "minUpperCase"
: The PIN must contain at least the number of uppercase letters given in the first parameter. "minSpecial"
: The PIN must contain at least the number of special characters given in the first parameter. "minLowerCase"
: The PIN must contain at least the number of lowercase letters given in the first parameter. "newOldDifferent"
: The new PIN value must be different from the old PIN value. "newOldDissimilar"
: At least threshold
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 parameter. "maxIncDecSequence"
: There must be no sequences of the number of increasing/decreasing characters given in the first parameter. - (NSString *) getType |
Gets the type of the constraint.
- (NSArray *) parameters |
Gets the parameters of the constraint.
nil
if the constraints has no parameters.