• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::PasswordAsker

QCA::PasswordAsker Class Reference
[QCA user API]

User password / passphrase / PIN handler. More...

#include <QtCrypto>

Inheritance diagram for QCA::PasswordAsker:
Inheritance graph
[legend]

List of all members.

Signals

void responseReady ()

Public Member Functions

 PasswordAsker (QObject *parent=0)
 ~PasswordAsker ()
bool accepted () const
void ask (Event::PasswordStyle pstyle, const QString &fileName, void *ptr)
void ask (Event::PasswordStyle pstyle, const KeyStoreInfo &keyStoreInfo, const KeyStoreEntry &keyStoreEntry, void *ptr)
void cancel ()
SecureArray password () const
void waitForResponse ()

Detailed Description

User password / passphrase / PIN handler.

This class is used to obtain a password from a user.

Definition at line 1524 of file qca_core.h.


Constructor & Destructor Documentation

QCA::PasswordAsker::PasswordAsker ( QObject *  parent = 0  ) 

Construct a new asker.

Parameters:
parent the parent object for this QObject

Definition at line 2032 of file qca_core.cpp.

QCA::PasswordAsker::~PasswordAsker (  ) 

Definition at line 2038 of file qca_core.cpp.


Member Function Documentation

bool QCA::PasswordAsker::accepted (  )  const

Determine whether the password / passphrase was accepted or not.

In this context, returning true is indicative of the user clicking "Ok" or equivalent; and returning false indicates that either the user clicked "Cancel" or equivalent, or that the cancel() function was called, or that the request is still pending.

Definition at line 2067 of file qca_core.cpp.

void QCA::PasswordAsker::ask ( Event::PasswordStyle  pstyle,
const QString &  fileName,
void *  ptr 
)

queue a password / passphrase request associated with a file

Parameters:
pstyle the type of information required (e.g. PIN, passphrase or password)
fileName the name of the file that the information is required for
ptr opaque data

Definition at line 2050 of file qca_core.cpp.

void QCA::PasswordAsker::ask ( Event::PasswordStyle  pstyle,
const KeyStoreInfo &  keyStoreInfo,
const KeyStoreEntry &  keyStoreEntry,
void *  ptr 
)

queue a password / passphrase request associated with a key store

Parameters:
pstyle the type of information required (e.g. PIN, passphrase or password)
keyStoreInfo info of the key store that the information is required for
keyStoreEntry the item in the key store that the information is required for (if applicable)
ptr opaque data

Definition at line 2043 of file qca_core.cpp.

void QCA::PasswordAsker::cancel (  ) 

Cancel the pending password / passphrase request.

Definition at line 2057 of file qca_core.cpp.

SecureArray QCA::PasswordAsker::password (  )  const

The password / passphrase / PIN provided by the user in response to the asker request.

This may be empty.

Definition at line 2072 of file qca_core.cpp.

void QCA::PasswordAsker::responseReady (  )  [signal]

Emitted when the asker process has been completed.

You should check whether the user accepted() the response prior to relying on the password().

void QCA::PasswordAsker::waitForResponse (  ) 

Block until the password / passphrase request is completed.

You can use the responseReady signal instead of blocking, if appropriate.

Definition at line 2062 of file qca_core.cpp.


The documentation for this class was generated from the following files:
  • qca_core.h
  • qca_core.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal