public enum PasswordStrength extends Enum<PasswordStrength>
Enum Constant and Description |
---|
EXCEPTIONAL |
MEDIUM |
MODERATE |
STRONG |
VERY_STRONG |
VERY_WEAK |
WEAK |
Modifier and Type | Method and Description |
---|---|
int |
getStrength() |
static PasswordStrength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordStrength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordStrength VERY_WEAK
public static final PasswordStrength WEAK
public static final PasswordStrength MODERATE
public static final PasswordStrength MEDIUM
public static final PasswordStrength STRONG
public static final PasswordStrength VERY_STRONG
public static final PasswordStrength EXCEPTIONAL
public static PasswordStrength[] values()
for (PasswordStrength c : PasswordStrength.values()) System.out.println(c);
public static PasswordStrength valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getStrength()
Copyright © 2023 JBoss by Red Hat. All rights reserved.