Setting Password Policy Using DataVault

(Optional) Use the getPasswordPolicy method to set password policy using DataVault.

Before calling the getPasswordPolicy method, set the CapabilitiesPasswordPolicy property to true using setConfigProperty method, so the user properties can be modified. By default, the value of CapabilitiesPasswordPolicy is set to false.

Syntax

 
NSDictionary *props = [NSMutableDictionary dictionary];
[props setValue:@"true" forKey:@"d:CapabilitiesPasswordPolicy"];
NSError* error = nil;
BOOL isSuccess = [appSettings setConfigProperty:props error:&error];
if (!error)
{     
     // Further processing      
}   
NSError* errorFetchingPP = nil;
DataVaultPasswordPolicy *dvppStruct = [appSettings getPasswordPolicy:& errorFetchingPP];
if (!errorFetchingPP)
{
 //  Further processing 
}