Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
SecureStorageService Class Reference

Private Member Functions

 SecureStorageService ({required this.key})
Future< voidsave ({required dynamic value}) async
Future< dynamic > get () async
Future< voiddelete () async
 CredentialsLocalDataSource ({super.key=Strings.credentialsKey})
Future< voidsaveCredentials ({required CredentialsModel credentials}) async
Future< CredentialsModel?> fetchCredentials () async
Future< voiddeleteCredentials () async
 SessionLocalDataSource ({super.key=Strings.sessionKey})
Future< voidsaveSession ({required SessionModel session}) async
Future< SessionModel?> fetchSession () async
Future< voiddeleteSession () async
 TokenLocalDataSource ({super.key=Strings.tokenKey})
Future< voidsaveToken ({required String token}) async
Future< voiddeleteToken () async
Future< String?> fetchToken () async

Private Attributes

final String key
final secureStorage

Detailed Description

Definition at line 3 of file secure_storage_service.dart.

Constructor & Destructor Documentation

◆ SecureStorageService()

SecureStorageService::SecureStorageService ( {required this.key} )
private

Member Function Documentation

◆ CredentialsLocalDataSource()

SecureStorageService::CredentialsLocalDataSource ( {super.key=Strings.credentialsKey} )
private

◆ delete()

Future< void > SecureStorageService::delete ( )
inlineprivate

Definition at line 21 of file secure_storage_service.dart.

◆ deleteCredentials()

Future< void > SecureStorageService::deleteCredentials ( )
inlineprivate

Definition at line 21 of file credentials_local_datasource.dart.

◆ deleteSession()

Future< void > SecureStorageService::deleteSession ( )
inlineprivate

Definition at line 22 of file session_local_datasource.dart.

◆ deleteToken()

Future< void > SecureStorageService::deleteToken ( )
inlineprivate

Definition at line 11 of file token_local_datasource.dart.

◆ fetchCredentials()

Future< CredentialsModel?> SecureStorageService::fetchCredentials ( )
inlineprivate

Definition at line 14 of file credentials_local_datasource.dart.

◆ fetchSession()

Future< SessionModel?> SecureStorageService::fetchSession ( )
inlineprivate

Definition at line 14 of file session_local_datasource.dart.

Here is the call graph for this function:

◆ fetchToken()

Future< String?> SecureStorageService::fetchToken ( )
inlineprivate

Definition at line 15 of file token_local_datasource.dart.

◆ get()

Future< dynamic > SecureStorageService::get ( )
inlineprivate

Definition at line 16 of file secure_storage_service.dart.

◆ save()

Future< void > SecureStorageService::save ( {required dynamic value} )
inlineprivate

Definition at line 12 of file secure_storage_service.dart.

◆ saveCredentials()

Future< void > SecureStorageService::saveCredentials ( {required CredentialsModel credentials} )
inlineprivate

Definition at line 10 of file credentials_local_datasource.dart.

◆ saveSession()

Future< void > SecureStorageService::saveSession ( {required SessionModel session} )
inlineprivate

Definition at line 10 of file session_local_datasource.dart.

Here is the call graph for this function:

◆ saveToken()

Future< void > SecureStorageService::saveToken ( {required String token} )
inlineprivate

Definition at line 7 of file token_local_datasource.dart.

◆ SessionLocalDataSource()

SecureStorageService::SessionLocalDataSource ( {super.key=Strings.sessionKey} )
private

◆ TokenLocalDataSource()

SecureStorageService::TokenLocalDataSource ( {super.key=Strings.tokenKey} )
private

Member Data Documentation

◆ key

final String SecureStorageService::key
private

Definition at line 4 of file secure_storage_service.dart.

◆ secureStorage

final SecureStorageService::secureStorage
private
Initial value:
= const FlutterSecureStorage(
aOptions: AndroidOptions(encryptedSharedPreferences: true),
iOptions: IOSOptions(accessibility: KeychainAccessibility.first_unlock),
)

Definition at line 7 of file secure_storage_service.dart.


The documentation for this class was generated from the following files: