public function setKeytype($keytype)
    {
        if (in_array($keytype, $this->allowedKeytypes) === false) {
            throw new Doozr_Form_Service_Exception(
                'Passed keytype: "'.$keytype.'" is not allowed or invalid.'
            );
        }

        $this->setAttribute('keytype', $keytype);
    }