protected $_policies = array(
'requirePin' => true,
'computerUnlock' => true,
- 'AEFrequencyType' => 0,
+ 'AEFrequencyType' => 1,
+ 'AEFrequencyValue' => 5,
'DeviceWipeThreshold' => 10,
'CodewordFrequency' => 5,
- 'MinimumPasswordLength' => 4,
+ 'MinimumPasswordLength' => 5,
'PasswordComplexity' => 2,
);
}
/**
- * Generate a random 10 digit policy key
- *
- * @return unknown
- */
- public function generatePolicyKey()
- {
- return mt_rand(1000000000, 9999999999);
- }
-
- /**
* Return a device wipe status
*
* @param string $user
$policyStatus = self::STATUS_POLKEYMISM;
} else {
/* Set the final key */
- $policykey = $this->_driver->generatePolicyKey();
+ $policykey = $state->generatePolicyKey();
$state->setPolicyKey($this->_devId, $policykey);
}
} elseif (empty($policykey)) {
// This is phase2 - we need to set the intermediate key
- $policykey = $this->_driver->generatePolicyKey();
+ $policykey = $state->generatePolicyKey();
$state->setPolicyKey($this->_devId, $policykey);
}
}
/**
+ * Generate a random 10 digit policy key
+ *
+ * @return unknown
+ */
+ public function generatePolicyKey()
+ {
+ return mt_rand(1000000000, 9999999999);
+ }
+
+ /**
* Loads the initial state from storage for the specified syncKey and
* intializes the stateMachine for use.
*