public function export(string $fingerprint): string
    {
        $gnupg = new \Crypt_GPG($this->options);
        try {
            $gnupg->addEncryptKey($fingerprint);
            return $gnupg->exportPublicKey($fingerprint, true);
        } catch (\PEAR_Exception $ex) {
            throw new GPGMailerException(
                'Could not export fingerprint "' . $fingerprint . '": ' .
                    $ex->getMessage(),
                $ex->getCode(),
                $ex
            );
        }
    }
public function export(string $fingerprint): string
    {
        $gnupg = new \Crypt_GPG($this->options);
        try {
            $gnupg->addEncryptKey($fingerprint);
            return $gnupg->exportPublicKey($fingerprint, true);
        } catch (\PEAR_Exception $ex) {
            throw new GPGMailerException(
                'Could not export fingerprint "' . $fingerprint . '": ' .
                    $ex->getMessage(),
                $ex->getCode(),
                $ex
            );
        }
    }
public function export ( string $ fingerprint ) : string { $ gnupg = new \ Crypt_GPG ( $ this -> options ) ; try { $ gnupg -> addEncryptKey ( $ fingerprint ) ; return $ gnupg -> exportPublicKey ( $ fingerprint , true ) ; } catch ( \ PEAR_Exception $ ex ) { throw new GPGMailerException ( 'Could not export fingerprint "' . $ fingerprint . '": ' . $ ex -> getMessage ( ) , $ ex -> getCode ( ) , $ ex ) ; } }
Get the public key corresponding to a fingerprint.

@param string $fingerprint
@return string
@throws \Crypt_GPG_Exception
@throws \Crypt_GPG_FileException
@throws GPGMailerException
@throws \PEAR_Exception
Get the public key corresponding to a fingerprint .