Class PasswordPolicy

Definition

Namespace:
Tizen.Security.DevicePolicyManager
Assembly:
Tizen.Security.DevicePolicyManager.dll
API Level:
6

The PasswordPolicy provides methods to manage password policies.

C#
Copy
public class PasswordPolicy : DevicePolicy
Inheritance
System.Object
PasswordPolicy
Remarks

The PasswordPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the PasswordPolicy.

Properties

View Source

DaysToExpiration

Gets the number of days password expires.

Declaration
C#
Copy
public int DaysToExpiration { get; }
Property Value
Type Description
Int32

Number of days after which the password expires. The default value is maximum of int.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

MaximumFailedAttemptsForWipe

Gets maximum number of failed attempts before device is wiped. If user fails the last attempt, device will be wiped.

Declaration
C#
Copy
public int MaximumFailedAttemptsForWipe { get; }
Property Value
Type Description
Int32

Maximum count for failed passwords. The default value is maximum of int.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

MaxInactivityTimeDeviceLock

Gets the maximum number of seconds of inactivity time before the screen timeout occurs.

Declaration
C#
Copy
public int MaxInactivityTimeDeviceLock { get; }
Property Value
Type Description
Int32

Maximum inactivity time for device lock. The default value is maximum of int.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

MinimumLength

Gets the minimum allowed password length.

Declaration
C#
Copy
public int MinimumLength { get; }
Property Value
Type Description
Int32

Allowed minimum password length. The default value is 0.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

MinimumPreviousHistory

Gets the number of min password history to avoid previous password.

Declaration
C#
Copy
public int MinimumPreviousHistory { get; }
Property Value
Type Description
Int32

Number of previous passwords which cannot be used when settings a new password. The default value is 0.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

MinimumRequiredComplexChars

Gets minimum complex char in password. Complex characters are all non-alphabetic characters; that is, numbers and symbols.

Declaration
C#
Copy
public int MinimumRequiredComplexChars { get; }
Property Value
Type Description
Int32

Number of minimum complex char in password. The default value is 0.

API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password
View Source

Quality

Gets password quality. An administrator can get the password restrictions it is imposing.

Declaration
C#
Copy
public PasswordQuality Quality { get; }
Property Value
Type Description
PasswordQuality

Password quality type, values of PasswordQuality. The default value is PasswordQuality UNSPECIFIED.

See Also
API Level: 6
Privilege Level: partner
Privilege: http://tizen.org/privilege/dpm.password