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 calling Pin.getConstraints().

The objects PinConstraint describing a constraint all have a type, indicating the type of constraints, and optionally, the parameters of the constraint. The type and parameters value can be one of the following (this list may be extended in the future):

"minLength" "minLength"
"newOldDissimilar" "threshold"

Methods

getParameter

public Object getParameter(String parameter)

Gets the parameters of the constraint.

Parameters:
  • parameter – the parameter name to get value from
Returns:

the parameters of the constraint, or null if the constraint has no parameters.

getType

public String getType()

Gets the type of the constraint.

Returns:the type of the constraint.