Class PasswordPolicy
Definition
- Namespace:
- Tizen.Security.DevicePolicyManager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
The PasswordPolicy provides methods to manage password policies.
C#Copypublic class PasswordPolicy : DevicePolicy
- Inheritance
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
Properties
Declaration
C#Copypublic int DaysToExpiration { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of days after which the password expires. The default value is maximum of int. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
MaximumFailedAttemptsForWipe
Gets maximum number of failed attempts before device is wiped. If user fails the last attempt, device will be wiped.
Declaration
C#Copypublic int MaximumFailedAttemptsForWipe { get; }
Property Value
| Type | Description |
|---|---|
| int | Maximum count for failed passwords. The default value is maximum of int. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
MaxInactivityTimeDeviceLock
Gets the maximum number of seconds of inactivity time before the screen timeout occurs.
Declaration
C#Copypublic int MaxInactivityTimeDeviceLock { get; }
Property Value
| Type | Description |
|---|---|
| int | Maximum inactivity time for device lock. The default value is maximum of int. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
Declaration
C#Copypublic int MinimumLength { get; }
Property Value
| Type | Description |
|---|---|
| int | Allowed minimum password length. The default value is 0. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
MinimumPreviousHistory
Gets the number of min password history to avoid previous password.
Declaration
C#Copypublic int MinimumPreviousHistory { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of previous passwords which cannot be used when settings a new password. The default value is 0. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
MinimumRequiredComplexChars
Gets minimum complex char in password. Complex characters are all non-alphabetic characters; that is, numbers and symbols.
Declaration
C#Copypublic int MinimumRequiredComplexChars { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of minimum complex char in password. The default value is 0. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.
Quality
Gets password quality. An administrator can get the password restrictions it is imposing.
Declaration
C#Copypublic PasswordQuality Quality { get; }
Property Value
| Type | Description |
|---|---|
| PasswordQuality | Password quality type, values of PasswordQuality. The default value is PasswordQuality UNSPECIFIED. |
Remarks
The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.