#include <cel_securestring.h>
List of all members.
Detailed Description
This class provides secure storage of the strings.
If your code managed to preserve any sensitive information such as usernames and passwords on memory, you had better use SecureString rather than String. Although this class does not provides any string manipulation functions, it stores the string in secure way. It is very useful when you implement your own CredentialProvider and CredentialInfo classes.
- See also:
- String, CredentialProvider, CredentialInfo
Constructor & Destructor Documentation
| Celartem::SecureString::SecureString |
( |
const String & |
inString = NullString |
) |
|
This constructor initializes the instance with the specified string.
- Parameters:
-
| inString | The string to be preserved in secure way. |
| Celartem::SecureString::SecureString |
( |
const SecureString & |
inSecString |
) |
|
This constructor copies the specified instance in secure way.
- Parameters:
-
| Celartem::SecureString::~SecureString |
( |
|
) |
|
The destructor zeroclears the memory space that used by the instance to reduce security risks.
Member Function Documentation
| String Celartem::SecureString::getAsString |
( |
|
) |
const |
This function decrypts and returns the string in plain text.
- Returns:
- The string stored in the instance.
| Celartem::SecureString::operator String |
( |
|
) |
const |
This function enables implicit cast to the String instance.
This function initializes the instance with the specified string.
- Parameters:
-
| inString | The string to be preserved in secure way. |
- Returns:
- Reference to the instance (*this).
This constructor copies the specified instance in secure way.
- Parameters:
-
- Returns:
- Reference to the instance (*this).
The documentation for this class was generated from the following file: