private function protect()
    {
        if (!in_array($this->certificateType, self::allAsString(), true)) {
            throw new \InvalidArgumentException(sprintf('Invalid certificate type %s', $this->certificateType));
        }
    }