C# Class Plugin.SecureStorage.SecureStorageImplementation

Secure storage implementation for iOS. It is primarily for storing secure strings such as generic password.
Inheritance: Plugin.SecureStorage.Abstractions.SecureStorageImplementationBase
Datei anzeigen Open project: sameerkapps/SecureStorage Class Usage Examples

Public Properties

Property Type Description
StorageFile string
StoragePassword string

Public Methods

Method Description
DeleteKey ( string key ) : bool

Deletes the key and corresponding value from the storage

GetValue ( string key, string defaultValue ) : string

Retrieves the value from storage. If value with the given key does not exist, returns default value

HasKey ( string key ) : bool

Determines whether specified key exists in the storage

SecureStorageImplementation ( ) : Plugin.SecureStorage.Abstractions

Default constructor created or loads the store

SetValue ( string key, string value ) : bool

Sets the value for the given key. If value exists, overwrites it Else creates new entry. Does not accept null value.

Protected Methods

Method Description
LoadData ( ) : byte[]

Loads the dictionary from storge

LoadDataAsync ( ) : Task

Implementation of Load from storage for Windows Store.

SaveData ( byte clearBytes ) : void

method to encrypt and save dictionary to storage

Private Methods

Method Description
AddRecord ( string key, string val ) : SecStatusCode

Adds the record of type GenericPassword

GetRecord ( string key, SecStatusCode &ssc ) : SecRecord

Retreives record from the store

GetSecretKeyEntry ( string key ) : KeyStore.SecretKeyEntry
RemoveRecord ( string key ) : SecStatusCode

Removes the record.

Save ( ) : void
SaveDataAsync ( byte clearBytes ) : Task

Implementation of Save to storage for Windows Store, WP8.1 and UWP

Method Details

DeleteKey() public method

Deletes the key and corresponding value from the storage
public DeleteKey ( string key ) : bool
key string
return bool

GetValue() public method

Retrieves the value from storage. If value with the given key does not exist, returns default value
public GetValue ( string key, string defaultValue ) : string
key string Key.
defaultValue string Default value.
return string

HasKey() public method

Determines whether specified key exists in the storage
public HasKey ( string key ) : bool
key string
return bool

LoadData() protected method

Loads the dictionary from storge
protected LoadData ( ) : byte[]
return byte[]

LoadDataAsync() protected method

Implementation of Load from storage for Windows Store.
protected LoadDataAsync ( ) : Task
return Task

SaveData() protected method

method to encrypt and save dictionary to storage
protected SaveData ( byte clearBytes ) : void
clearBytes byte
return void

SecureStorageImplementation() public method

Default constructor created or loads the store
public SecureStorageImplementation ( ) : Plugin.SecureStorage.Abstractions
return Plugin.SecureStorage.Abstractions

SetValue() public method

Sets the value for the given key. If value exists, overwrites it Else creates new entry. Does not accept null value.
public SetValue ( string key, string value ) : bool
key string Key.
value string Value.
return bool

Property Details

StorageFile public_oe static_oe property

Name of the storage file.
public static string StorageFile
return string

StoragePassword public_oe static_oe property

Password for storage
public static string StoragePassword
return string