KeyChainManager class
Service to manage keychain entries. This includes saving the encryption keys and secret to keychain
Constructors
- KeyChainManager.getInstance()
-
factory
Properties
- biometricStorage ↔ BiometricStorage
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkForValuesInFlutterKeychain(
) → Future< Map< String, bool?> > -
This function is deprecated and will be removed in upcoming version. Use
getAtsignsWithStatus()
instead -
clearKeychainEntries(
) → Future< void> - Function to clear all entries from keychain
-
deleteAllData(
{→ Future< })AtClientData?> -
deleteAtSignFromKeychain(
String atsign) → Future< bool> - Function to remove an atsign from list of atsigns and hence, from keychain
-
deleteEnrollmentStore(
String atSign) → dynamic - Change atsign data to internal store
- Change atsign data to internal store
-
generateAESKey(
) → String -
generateKeyPair(
) → RSAKeypair - Function to generate an RSA key pair
-
getAtSign(
) → Future< String?> - Function to get default atsigns name from keychain
-
getAtSignListFromKeychain(
) → Future< List< String> > - Fetches list of all the onboarded atsigns
-
getAtsignsWithStatus(
) → Future< Map< String, bool?> > - Function to get Map of atsigns from keychain
-
getBiometricStorageFile(
String key) → Future< BiometricStorageFile> - This function is deprecated and will be removed in upcoming version
-
getCramSecret(
String atSign) → Future< String?> - Function to get cram secret from keychain
-
getEncryptedKeys(
String atsign) → Future< Map< String, String> > -
getEncryptionPrivateKey(
String atSign) → Future< String?> - Function to get encryption private key from keychain
-
getEncryptionPublicKey(
String atSign) → Future< String?> - Function to get encryption public key from keychain
-
getEnrollmentStorage(
String atSign) → Future< BiometricStorageFile> -
getHiveSecretFromKeychain(
String atsign) → Future< List< int> > - Function to get hive secret from keychain
-
getKeyStoreSecret(
String atSign) → Future< List< int> ?> - Function to get hive secret from keychain
-
getPkamPrivateKey(
String atSign) → Future< String?> - Function to get pkam private key from keychain
-
getPkamPublicKey(
String atSign) → Future< String?> - Function to get pkam public key from keychain
-
getPrivateKeyFromKeyChain(
String atsign) → Future< String?> - Use readAtsign
-
getPublicKeyFromKeyChain(
String atsign) → Future< String?> - Use readAtsign
-
getSecretFromKeychain(
String atsign) → Future< String> - Function to get atsign secret from keychain
-
getSelfEncryptionAESKey(
String atSign) → Future< String?> - Function to get self encryption key from keychain
-
getValue(
String atsign, String key) → Future< String?> - Function to get value for the key passed from keychain
-
initialSetup(
{→ Future< })void> - Initial setup
- Check app allow sharing atsign or not @returns 'null' if not define yet @returns 'true' if use sharing store @returns 'false' if use internal store
-
makeAtSignPrimary(
String atsign) → Future< bool> - Function to make the atsign passed as primary
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putValue(
String atsign, String key, String value) → Future< String> - Function to save value for the key passed to keychain
-
readAtClientData(
{→ Future< })AtClientData?> -
readAtsign(
{required String name}) → Future< AtsignKey?> - Function to get atsign's key with name
-
readAtsigns(
) → Future< List< AtsignKey> > - Function to get all atsign item in keychain
-
readFromEnrollmentStore(
String atSign) → Future< String?> -
resetAtSignFromKeychain(
String atsign) → Future< bool> - Function to delete all values related to the atsign passed from keychain
-
storeAtSign(
{required AtsignKey atSign}) → Future< bool> - Function to add a new atsign to keychain
-
storeAtSigns(
{required List< AtsignKey> atSigns}) → Future<bool> - Function to add new atsigns to keychain
-
storeCredentialToKeychain(
String atSign, {String? secret, String? privateKey, String? publicKey}) → Future< bool> - Function to save atsign and pkam keys passed to keychain
-
storePkamKeysToKeychain(
String atsign, {String? privateKey, String? publicKey}) → Future< bool> - Function to save pkam keys for the atsign passed to keychain
-
toString(
) → String -
A string representation of this object.
inherited
-
writeToEnrollmentStore(
String atSign, String data) → dynamic
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited