Sailfish Crypto
API DocumentationVerifyRequest Class
(Sailfish::Crypto::VerifyRequest)Allows a client request the system crypto service to verify that data was signed with a specific key More...
Header: | #include <Crypto/verifyrequest.h> |
Instantiated By: | VerifyRequest |
Inherits: | Sailfish::Crypto::Request |
Properties
|
|
- 4 properties inherited from Sailfish::Crypto::Request
Public Functions
VerifyRequest(QObject *parent = Q_NULLPTR) | |
~VerifyRequest() | |
QString | cryptoPluginName() const |
QByteArray | data() const |
Sailfish::Crypto::CryptoManager::DigestFunction | digestFunction() const |
Sailfish::Crypto::Key | key() const |
Sailfish::Crypto::CryptoManager::SignaturePadding | padding() const |
void | setCryptoPluginName(const QString &pluginName) |
void | setData(const QByteArray &data) |
void | setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFn) |
void | setKey(const Sailfish::Crypto::Key &key) |
void | setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding) |
void | setSignature(const QByteArray &sig) |
QByteArray | signature() const |
Sailfish::Crypto::CryptoManager::VerificationStatus | verificationStatus() const |
Reimplemented Public Functions
virtual QVariantMap | customParameters() const |
virtual Sailfish::Crypto::CryptoManager * | manager() const |
virtual Sailfish::Crypto::Result | result() const |
virtual void | setCustomParameters(const QVariantMap ¶ms) |
virtual void | setManager(Sailfish::Crypto::CryptoManager *manager) |
virtual void | startRequest() |
virtual Sailfish::Crypto::Request::Status | status() const |
virtual void | waitForFinished() |
- 8 public functions inherited from Sailfish::Crypto::Request
Signals
void | cryptoPluginNameChanged() |
void | dataChanged() |
void | digestFunctionChanged() |
void | keyChanged() |
void | paddingChanged() |
void | signatureChanged() |
void | verificationStatusChanged() |
- 4 signals inherited from Sailfish::Crypto::Request
Detailed Description
Allows a client request the system crypto service to verify that data was signed with a specific key
Property Documentation
cryptoPluginName : QString
Access functions:
QString | cryptoPluginName() const |
void | setCryptoPluginName(const QString &pluginName) |
Notifier signal:
void | cryptoPluginNameChanged() |
data : QByteArray
Access functions:
Notifier signal:
void | dataChanged() |
digestFunction : Sailfish::Crypto::CryptoManager::DigestFunction
Access functions:
Sailfish::Crypto::CryptoManager::DigestFunction | digestFunction() const |
void | setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFn) |
Notifier signal:
void | digestFunctionChanged() |
key : Sailfish::Crypto::Key
Access functions:
Sailfish::Crypto::Key | key() const |
void | setKey(const Sailfish::Crypto::Key &key) |
Notifier signal:
void | keyChanged() |
padding : Sailfish::Crypto::CryptoManager::SignaturePadding
Access functions:
Sailfish::Crypto::CryptoManager::SignaturePadding | padding() const |
void | setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding) |
Notifier signal:
void | paddingChanged() |
signature : QByteArray
Access functions:
QByteArray | signature() const |
void | setSignature(const QByteArray &sig) |
Notifier signal:
void | signatureChanged() |
verificationStatus : const Sailfish::Crypto::CryptoManager::VerificationStatus
Access functions:
Sailfish::Crypto::CryptoManager::VerificationStatus | verificationStatus() const |
Notifier signal:
void | verificationStatusChanged() |
Member Function Documentation
VerifyRequest::VerifyRequest(QObject *parent = Q_NULLPTR)
Constructs a new VerifyRequest object with the given parent
VerifyRequest::~VerifyRequest()
Destroys the VerifyRequest
QString VerifyRequest::cryptoPluginName() const
Returns the name of the crypto plugin which the client wishes to perform the verification operation
Note: Getter function for property cryptoPluginName.
See also setCryptoPluginName().
[virtual]
QVariantMap VerifyRequest::customParameters() const
See also setCustomParameters().
QByteArray VerifyRequest::data() const
Returns the data which was signed by the remote party
Note: Getter function for property data.
See also setData().
Sailfish::Crypto::CryptoManager::DigestFunction VerifyRequest::digestFunction() const
Returns the digest which was used to generate the signature
Note: Getter function for property digestFunction.
See also setDigestFunction().
Sailfish::Crypto::Key VerifyRequest::key() const
Returns the key which the client wishes the system service to use to verify the data
Note: Getter function for property key.
See also setKey().
[virtual]
Sailfish::Crypto::CryptoManager *VerifyRequest::manager() const
See also setManager().
Sailfish::Crypto::CryptoManager::SignaturePadding VerifyRequest::padding() const
Returns the signature padding mode which was used when signing the data
Note: Getter function for property padding.
See also setPadding().
[virtual]
Sailfish::Crypto::Result VerifyRequest::result() const
void VerifyRequest::setCryptoPluginName(const QString &pluginName)
Sets the name of the crypto plugin which the client wishes to perform the verification operation to pluginName
Note: Setter function for property cryptoPluginName.
See also cryptoPluginName().
[virtual]
void VerifyRequest::setCustomParameters(const QVariantMap ¶ms)
See also customParameters().
void VerifyRequest::setData(const QByteArray &data)
Sets the data which was signed by the remote party to data
Note: Setter function for property data.
See also data().
void VerifyRequest::setDigestFunction(Sailfish::Crypto::CryptoManager::DigestFunction digestFn)
Sets the digest which was used to generate the signature to digestFn
Note: Setter function for property digestFunction.
See also digestFunction().
[virtual]
void VerifyRequest::setManager(Sailfish::Crypto::CryptoManager *manager)
See also manager().
void VerifyRequest::setPadding(Sailfish::Crypto::CryptoManager::SignaturePadding padding)
Sets the signature padding mode which was used when signing the data to padding
Note: Setter function for property padding.
See also padding().
void VerifyRequest::setSignature(const QByteArray &sig)
Sets the signature which the client wishes the system service to verify to sig
Note: Setter function for property signature.
See also signature().
QByteArray VerifyRequest::signature() const
Returns the signature which the client wishes the system service to verify
Note: Getter function for property signature.
See also setSignature().
[virtual]
void VerifyRequest::startRequest()
[virtual]
Sailfish::Crypto::Request::Status VerifyRequest::status() const
Sailfish::Crypto::CryptoManager::VerificationStatus VerifyRequest::verificationStatus() const
Returns VerificationSucceeded if signature data was determined to have been signed with the specified key.
Note: this value is only valid if the status of the request is Request::Finished.
Note: Getter function for property verificationStatus.