Sailfish Crypto
API DocumentationImportKeyRequest Class
(Sailfish::Crypto::ImportKeyRequest)Allows a client request that the system crypto service import a key from some data. More...
Header: | #include <Crypto/importkeyrequest.h> |
Instantiated By: | ImportKeyRequest |
Inherits: | Sailfish::Crypto::Request |
Properties
- cryptoPluginName : QString
- data : QByteArray
- importedKey : const Sailfish::Crypto::Key
- interactionParameters : Sailfish::Crypto::InteractionParameters
- 4 properties inherited from Sailfish::Crypto::Request
Public Functions
ImportKeyRequest(QObject *parent = Q_NULLPTR) | |
~ImportKeyRequest() | |
QString | cryptoPluginName() const |
QByteArray | data() const |
Sailfish::Crypto::Key | importedKey() const |
Sailfish::Crypto::InteractionParameters | interactionParameters() const |
void | setCryptoPluginName(const QString &pluginName) |
void | setData(const QByteArray &data) |
void | setInteractionParameters(const Sailfish::Crypto::InteractionParameters &uiParams) |
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 | importedKeyChanged() |
void | interactionParametersChanged() |
- 4 signals inherited from Sailfish::Crypto::Request
Detailed Description
Allows a client request that the system crypto service import a key from some data.
This key will not be stored securely by the crypto daemon, but instead will be returned in its complete form to the caller.
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() |
importedKey : const Sailfish::Crypto::Key
Access functions:
Sailfish::Crypto::Key | importedKey() const |
Notifier signal:
void | importedKeyChanged() |
interactionParameters : Sailfish::Crypto::InteractionParameters
Access functions:
Sailfish::Crypto::InteractionParameters | interactionParameters() const |
void | setInteractionParameters(const Sailfish::Crypto::InteractionParameters &uiParams) |
Notifier signal:
void | interactionParametersChanged() |
Member Function Documentation
ImportKeyRequest::ImportKeyRequest(QObject *parent = Q_NULLPTR)
Constructs a new ImportKeyRequest object with the given parent.
ImportKeyRequest::~ImportKeyRequest()
Destroys the ImportKeyRequest
QString ImportKeyRequest::cryptoPluginName() const
Returns the name of the crypto plugin which the client wishes to perform the key import operation
Note: Getter function for property cryptoPluginName.
See also setCryptoPluginName().
[virtual]
QVariantMap ImportKeyRequest::customParameters() const
See also setCustomParameters().
QByteArray ImportKeyRequest::data() const
Returns the data which should be imported as a key.
Note: Getter function for property data.
See also setData().
Sailfish::Crypto::Key ImportKeyRequest::importedKey() const
Returns the imported key
Note: this value is only valid if the status of the request is Request::Finished.
Note: Getter function for property importedKey.
Sailfish::Crypto::InteractionParameters ImportKeyRequest::interactionParameters() const
Returns the user input parameters which should be used when requesting the input data from the user
If specified, the user may be prompted to enter a pass phrase needed to decrypt the imported key.
Note: Getter function for property interactionParameters.
See also setInteractionParameters().
[virtual]
Sailfish::Crypto::CryptoManager *ImportKeyRequest::manager() const
See also setManager().
[virtual]
Sailfish::Crypto::Result ImportKeyRequest::result() const
void ImportKeyRequest::setCryptoPluginName(const QString &pluginName)
Sets the name of the crypto plugin which the client wishes to perform the key import operation to pluginName
Note: Setter function for property cryptoPluginName.
See also cryptoPluginName().
[virtual]
void ImportKeyRequest::setCustomParameters(const QVariantMap ¶ms)
See also customParameters().
void ImportKeyRequest::setData(const QByteArray &data)
Sets the data which should be imported.
Note: Setter function for property data.
See also data().
void ImportKeyRequest::setInteractionParameters(const Sailfish::Crypto::InteractionParameters &uiParams)
Sets the user input parameters which should be used when requesting the input data from the user to uiParams
Note: Setter function for property interactionParameters.
See also interactionParameters().
[virtual]
void ImportKeyRequest::setManager(Sailfish::Crypto::CryptoManager *manager)
See also manager().