Skip to main content
Example
export interface PasswordValidationResult {
  /**
   * Overall outcome of all password policy checks.
   *
   * `true` only if every rule in {@link PasswordComplexityRule} has `status` equal to `"valid"`.
   */
  isValid: boolean;

  /**
   * 評価されたパスワードルールの配列。
   *
   * 各項目は {@link PasswordComplexityRule} であり、
   * {@link PasswordComplexityRule.status | status} フィールドには
   * そのルールに対する検証結果が反映されます。
   */
  results: PasswordComplexityRule[];
}

プロパティ

isValid
boolean
すべてのパスワードポリシーチェックの全体的な結果です。PasswordComplexityRule のすべてのルールで status"valid" の場合にのみ true になります。
results
評価されたパスワードルールの配列です。各要素は PasswordComplexityRule であり、その status フィールドには、そのルールに対して計算された検証結果が反映されます。