public function __construct($hstsMaxAge, $hstsSubdomains, $hstsPreload = false, array $whitelist = array(), array $hosts = array())
{
$this->hstsMaxAge = $hstsMaxAge;
$this->hstsSubdomains = $hstsSubdomains;
$this->hstsPreload = $hstsPreload;
$this->whitelist = $whitelist ? '(' . implode('|', $whitelist) . ')' : null;
$this->hosts = $hosts ? '(' . implode('|', $hosts) . ')' : null;
}