Language

PasswordComplexity Enum

Definition

public enum PasswordComplexity
type PasswordComplexity = 
Inheritance
PasswordComplexity

Fields

Name Value Description
None 0

Constant for getPasswordComplexity() and setRequiredPasswordComplexity(int): no password.

When returned from getPasswordComplexity(), the constant represents the exact complexity band the password is in. When passed to setRequiredPasswordComplexity(int), it sets the minimum complexity band which the password must meet.

Android reference for android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Low 65536

Constant for getPasswordComplexity() and setRequiredPasswordComplexity(int). Define the low password complexity band as: pattern; PIN with repeating (4444) or ordered (1234, 4321, 2468) sequences

When returned from getPasswordComplexity(), the constant represents the exact complexity band the password is in. When passed to setRequiredPasswordComplexity(int), it sets the minimum complexity band which the password must meet.

Android reference for android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_LOW.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Medium 196608

Constant for getPasswordComplexity() and setRequiredPasswordComplexity(int). Define the medium password complexity band as: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4; alphabetic, length at least 4; alphanumeric, length at least 4

When returned from getPasswordComplexity(), the constant represents the exact complexity band the password is in. When passed to setRequiredPasswordComplexity(int), it sets the minimum complexity band which the password must meet.

Android reference for android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_MEDIUM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

High 327680

Constant for getPasswordComplexity() and setRequiredPasswordComplexity(int). Define the high password complexity band as: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 8; alphabetic, length at least 6; alphanumeric, length at least 6

When returned from getPasswordComplexity(), the constant represents the exact complexity band the password is in. When passed to setRequiredPasswordComplexity(int), it sets the minimum complexity band which the password must meet.

Android reference for android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to