Show / Hide Table of Contents

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 list of PinConstraint objects by calling 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 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 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 parameters.
  • maxIncDecSequence: There must be no sequences of the number of increasing/decreasing characters given in the first parameters.
Inheritance
System.Object
PinConstraint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: scmapi
Assembly: scmapi.dll
Syntax
public class PinConstraint

Methods

GetParameters()

Gets the parameters of the constraint.

Declaration
public object[] GetParameters()
Returns
Type Description
System.Object[]

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

GetType()

Gets the type of the constraint.

Declaration
public string GetType()
Returns
Type Description
System.String

the type of the constraint.

Back to top Generated by DocFX