#include <cel_credprovider.h>
This class stores a credential information returned by CredentialProvider::getCredential method. The instances of this class should be removed as soon as possible to reduce security risks.
Instances of this class is created by CredentialProvider::create, CredentialProvider::createFromStrings. For more information about CredentialProvider or authentication, see authToDoc.
- See Also
- CredentialProvider, CredentialProvider::create, CredentialProvider::createFromStrings
virtual void Celartem::CredentialInfo::confirm |
( |
bool |
inCredentialIsConfirmed | ) |
|
|
pure virtual |
This method is to confirm the validity of the credential and save it to the internal store. This method is useful when the CredentialProvider::getCredential method shows some dialog and the user checks "Save this password" checkbox.
Please call this method if the application confirms that the credential information provided by this instance is valid and the user want to save it to the CredentialProvider specific persistent (and secure) storage.
virtual String Celartem::CredentialInfo::getPassword |
( |
| ) |
const |
|
pure virtual |
This method returns the password of this credential.
You should not preserve the information obtained by this method to some persist storage (including member variables of some class) to reduce security risks.
- Returns
- The String instance that holds the password.
virtual String Celartem::CredentialInfo::getTarget |
( |
| ) |
const |
|
pure virtual |
This method returns the target of this credential information.
- Returns
- The String instance that holds the credential target.
virtual String Celartem::CredentialInfo::getUserName |
( |
| ) |
const |
|
pure virtual |
This method returns the user name of this credential.
You should not preserve the information obtained by this method to some persist storage (including member variables of some class) to reduce security risks.
- Returns
- The String instance that holds the user name.
virtual bool Celartem::CredentialInfo::isConfirmed |
( |
| ) |
const |
|
pure virtual |
This method determines whether the credential is confirmed or not.
- Returns
true
if the credential is confirmed; otherwise false
.
The documentation for this class was generated from the following file: