Class CustomerPasswordConstraints

Provides access to the constraints of customer passwords. An instance of this class can be obtained via CustomerMgr.getPasswordConstraints().

Property Summary 

PropertyDescription
forceLetters: Boolean (read-only)Returns true if letters are enforced.
forceMixedCase: Boolean (read-only)Returns true if mixed case is enforced.
forceNumbers: Boolean (read-only)Returns true if numbers are enforced.
minLength: Number (read-only)Returns the minimum length.
minSpecialChars: Number (read-only)Returns the minimum number of special characters.

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
static getMinLength()Returns the minimum length.
static getMinSpecialChars()Returns the minimum number of special characters.
static isForceLetters()Returns true if letters are enforced.
static isForceMixedCase()Returns true if mixed case is enforced.
static isForceNumbers()Returns true if numbers are enforced.

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

forceLetters 

forceLetters: Boolean (read-only)

Returns true if letters are enforced.


forceMixedCase 

forceMixedCase: Boolean (read-only)

Returns true if mixed case is enforced.


forceNumbers 

forceNumbers: Boolean (read-only)

Returns true if numbers are enforced.


minLength 

minLength: Number (read-only)

Returns the minimum length.


minSpecialChars 

minSpecialChars: Number (read-only)

Returns the minimum number of special characters.


Method Details 

getMinLength() 

static getMinLength(): Number

Returns the minimum length.

Returns:

  • the minimum length

getMinSpecialChars() 

static getMinSpecialChars(): Number

Returns the minimum number of special characters.

Returns:

  • the minimum number of special characters

isForceLetters() 

static isForceLetters(): Boolean

Returns true if letters are enforced.

Returns:

  • if letters are enforced

isForceMixedCase() 

static isForceMixedCase(): Boolean

Returns true if mixed case is enforced.

Returns:

  • if mixed case is enforced

isForceNumbers() 

static isForceNumbers(): Boolean

Returns true if numbers are enforced.

Returns:

  • if numbers are enforced

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!