QXmppEncryptedFileSource Class

Represents an encrypted file source for file sharing. More...

Header: #include <QXmppEncryptedFileSource>
Since: QXmpp 1.5

Public Functions

QXmpp::Cipher cipher() const
const QVector<QXmppHash> &hashes() const
const QVector<QXmppHttpFileSource> &httpSources() const
const QByteArray &iv() const
const QByteArray &key() const
void setCipher(QXmpp::Cipher newCipher)
void setHashes(const QVector<QXmppHash> &newHashes)
void setHttpSources(const QVector<QXmppHttpFileSource> &newHttpSources)
void setIv(const QByteArray &newIv)
void setKey(const QByteArray &newKey)

Detailed Description

Member Function Documentation

QXmpp::Cipher QXmppEncryptedFileSource::cipher() const

Returns the cipher that was used to encrypt the data in this file source

See also setCipher().

const QVector<QXmppHash> &QXmppEncryptedFileSource::hashes() const

Returns the hashes of the file contained in this file source

See also setHashes().

const QVector<QXmppHttpFileSource> &QXmppEncryptedFileSource::httpSources() const

Returns the http sources that can be used to retrieve the encrypted data

See also setHttpSources().

const QByteArray &QXmppEncryptedFileSource::iv() const

Returns the Initialization vector that can be used to decrypt the data in this file source

See also setIv().

const QByteArray &QXmppEncryptedFileSource::key() const

Returns the key that can be used to decrypt the data in this file source

See also setKey().

void QXmppEncryptedFileSource::setCipher(QXmpp::Cipher newCipher)

Sets the cipher that was used to encrypt the data in this file source

newCipher.

See also cipher().

void QXmppEncryptedFileSource::setHashes(const QVector<QXmppHash> &newHashes)

Sets the hashes of the file contained in this file source

newHashes.

See also hashes().

void QXmppEncryptedFileSource::setHttpSources(const QVector<QXmppHttpFileSource> &newHttpSources)

Sets the http sources containing the encrypted data

newHttpSources.

See also httpSources().

void QXmppEncryptedFileSource::setIv(const QByteArray &newIv)

Sets the initialization vector that was used to encrypt the data in this file source

newIv.

See also iv().

void QXmppEncryptedFileSource::setKey(const QByteArray &newKey)

Sets the key that was used to encrypt the data in this file source

newKey.

See also key().