Page Summary
-
PasswordComplexityCheckResult indicates the screen lock complexity or the type of error if the check fails.
-
This interface provides constants for different password complexities, including NONE, LOW, MEDIUM, and HIGH.
-
There are also constants defined to indicate various error conditions such as ACCESS_DENIED or FEATURE_OFF.
-
Higher constant values for password complexity indicate a more complex screen lock.
Result of
PasswordComplexityServiceClient.getPasswordComplexity() to indicate screen lock
complexity, or type of error if check fails.
Constant Summary
| int | ACCESS_DENIED | |
| int | DA_NOT_ACTIVE | |
| int | FEATURE_OFF | |
| int | PASSWORD_COMPLEXITY_HIGH |
Screen lock satisfies one of the following:
Note that these complexity constants are ordered so that higher values are more complex. |
| int | PASSWORD_COMPLEXITY_LOW | Screen lock is one of pattern, PIN, or password. |
| int | PASSWORD_COMPLEXITY_MEDIUM |
Screen lock satisfies one of the following:
Note that these complexity constants are ordered so that higher values are more complex. |
| int | PASSWORD_COMPLEXITY_NONE | No screen lock. |
| int | SDK_VER_TOO_HIGH | |
| int | SDK_VER_TOO_LOW | |
| int | UNKNOWN |
Inherited Method Summary
Constants
public static final int ACCESS_DENIED
public static final int DA_NOT_ACTIVE
public static final int FEATURE_OFF
public static final int PASSWORD_COMPLEXITY_HIGH
Screen lock satisfies one of the following:
- PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
- alphabetic, length at least 6
- alphanumeric, length at least 6
Note that these complexity constants are ordered so that higher values are more complex.
public static final int PASSWORD_COMPLEXITY_LOW
Screen lock is one of pattern, PIN, or password.
Note that these complexity constants are ordered so that higher values are more complex.
public static final int PASSWORD_COMPLEXITY_MEDIUM
Screen lock satisfies one of the following:
- PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 (only supported on Android Lollipop or above)
- alphabetic, length at least 4
- alphanumeric, length at least 4
Note that these complexity constants are ordered so that higher values are more complex.
public static final int PASSWORD_COMPLEXITY_NONE
No screen lock.
Note that these complexity constants are ordered so that higher values are more complex.