IMP_Smime::encryptList PHP Method

encryptList() public method

Returns the list of available encryption options for composing.
public encryptList ( ) : array
return array Keys are encryption type constants, values are gettext strings describing the encryption type.
    public function encryptList()
    {
        global $injector, $registry;
        $ret = array();
        if ($registry->hasMethod('contacts/getField') || $injector->getInstance('Horde_Core_Hooks')->hookExists('smime_key', 'imp')) {
            $ret += array(self::ENCRYPT => _("S/MIME Encrypt Message"));
        }
        if ($this->getPersonalPrivateKey()) {
            $ret += array(self::SIGN => _("S/MIME Sign Message"), self::SIGNENC => _("S/MIME Sign/Encrypt Message"));
        }
        return $ret;
    }