IMP_Basic_Smime::_getSecondaryKey PHP Method

_getSecondaryKey() protected method

Returns the secondary key if uploaded.
protected _getSecondaryKey ( ) : string | boolean
return string | boolean The key contents or false if not uploaded.
    protected function _getSecondaryKey()
    {
        global $notification;
        try {
            return $this->_getImportKey('upload_key2');
        } catch (Horde_Browser_Exception $e) {
            if ($e->getCode() == UPLOAD_ERR_NO_FILE) {
                return false;
            }
            $notification->push(_("Secondary personal S/MIME certificates NOT imported."), 'horde.error');
        } catch (Horde_Exception $e) {
            $notification->push(_("Secondary personal S/MIME certificates NOT imported: ") . $e->getMessage(), 'horde.error');
        }
        return false;
    }