PasswordComplexityCheckResult
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
ACCESS_DENIED
|
|
int |
DA_NOT_ACTIVE
|
|
int |
FEATURE_OFF
|
|
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.
|
int |
PASSWORD_COMPLEXITY_LOW
|
Screen lock is one of pattern, PIN, or
password. |
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.
|
int |
PASSWORD_COMPLEXITY_NONE
|
No screen lock. |
int |
SDK_VER_TOO_HIGH
|
|
int |
SDK_VER_TOO_LOW
|
|
int |
UNKNOWN
|
|
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
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.
Constant Value: 327680
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.
Constant Value: 65536
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.
Constant Value: 196608
public static final int
PASSWORD_COMPLEXITY_NONE
No screen lock.
Note that these complexity constants are ordered so that higher values are more
complex.
Constant Value: 0
public static final int
SDK_VER_TOO_HIGH
public static final int
SDK_VER_TOO_LOW
public static final int
UNKNOWN
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PasswordComplexityCheckResult` is an annotation indicating screen lock complexity or errors during checks, returned by `PasswordComplexityServiceClient.getPasswordComplexity()`."],["It defines constants representing different levels of screen lock complexity, ranging from `PASSWORD_COMPLEXITY_NONE` (no screen lock) to `PASSWORD_COMPLEXITY_HIGH` (strong password or PIN)."],["Constants like `ACCESS_DENIED`, `FEATURE_OFF`, and `SDK_VER_TOO_LOW` signal potential issues encountered during the complexity check."],["Higher constant values generally indicate stronger password complexity levels."]]],["`PasswordComplexityCheckResult` defines the outcome of a password complexity check. It outlines various constants representing different screen lock scenarios: `PASSWORD_COMPLEXITY_NONE` (no lock), `LOW` (pattern, PIN, or password), `MEDIUM` (specific PIN/alphabetic/alphanumeric requirements), and `HIGH` (more stringent PIN/alphabetic/alphanumeric needs). It also covers error states like `ACCESS_DENIED`, `DA_NOT_ACTIVE`, `FEATURE_OFF`, `SDK_VER_TOO_HIGH/LOW`, and `UNKNOWN`, signaling issues during the check. Complexity levels are ordered, higher values indicating increased complexity.\n"]]