Script: Class dw.customer.CustomerPasswordConstraints

Class CustomerPasswordConstraints

  • Object
    • dw.customer.CustomerPasswordConstraints

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

Properties

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

The minimum length.

minSpecialChars : Number Read Only

The minimum number of special characters.

Constructor Summary

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

Method Summary

static getMinLength() : Number

Returns the minimum length.

static getMinSpecialChars() : Number

Returns the minimum number of special characters.

static isForceLetters() : boolean

Returns true if letters are enforced.

static isForceMixedCase() : boolean

Returns true if mixed case is enforced.

static isForceNumbers() : boolean

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

Method Detail

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