共用方式為


DevicePolicyManager.PasswordComplexityMedium Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.Admin.PasswordComplexity enum directly instead of this field.

Constant for #getPasswordComplexity() and #setRequiredPasswordComplexity(int).

[Android.Runtime.Register("PASSWORD_COMPLEXITY_MEDIUM", ApiSince=29)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PasswordComplexity enum directly instead of this field.", true)]
public const Android.App.Admin.PasswordComplexity PasswordComplexityMedium = 196608;
[<Android.Runtime.Register("PASSWORD_COMPLEXITY_MEDIUM", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Admin.PasswordComplexity enum directly instead of this field.", true)>]
val mutable PasswordComplexityMedium : Android.App.Admin.PasswordComplexity

Field Value

Value = 196608
Attributes

Remarks

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

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.

@see #PASSWORD_QUALITY_NUMERIC_COMPLEX @see #PASSWORD_QUALITY_ALPHABETIC @see #PASSWORD_QUALITY_ALPHANUMERIC

Java documentation 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.

Applies to