The IKeychainService interface provides the ability to interact with the storage of sensitive data - read, write and delete it.
More...
#include <IKeychainService.h>
The IKeychainService interface provides the ability to interact with the storage of sensitive data - read, write and delete it.
◆ ErrorCode
Error codes for results of operations with the keychain service
Enumerator |
---|
NoError | No error occurred, operation was successful
|
EntryNotFound | For the given key no data was found
|
CouldNotDeleteEntry | Could not delete existing secret data
|
AccessDeniedByUser | User denied access to keychain
|
AccessDenied | Access denied for some reason
|
NoBackendAvailable | No platform-specific keychain service available
|
NotImplemented | Not implemented on platform
|
OtherError | Something else went wrong, the error description specifies what
|
◆ deletePassword()
deletePassword potentially asynchronously deletes password from the keychain.
- Parameters
-
service | Name of service within the keychain |
key | Key under which the password is stored |
- Returns
- Future which becomes finished when the operation is comlete. If the operation fails, the future would contain an exception.
◆ readPassword()
readPassword method potentially asynchronously reads password from the keychain.
- Parameters
-
service | Name of service within the keychain |
key | Key under which the password is stored |
- Returns
- Future which becomes finished when the operation is complete. The value inside the future would be the read password. If the operation fails, the future would contain an exception.
◆ writePassword()
writePassword method potentially asynchronously writes password to the keychain.
- Parameters
-
service | Name of service within the keychain |
key | Key to store the password under |
password | Password to store in the keychain |
- Returns
- Future which becomes finished when the operation is comlete. If the operation fails, the future would contain an exception.