C# Class Plugin.SecureStorage.Abstractions.SecureStorageImplementationBase

This base class provides validation functionality that is common across platforms
Inheritance: ISecureStorage
显示文件 Open project: sameerkapps/SecureStorage

Public Methods

Method Description
DeleteKey ( string key ) : bool

Validates that key is not whitespace or null.

GetValue ( string key, string defaultValue = null ) : string

Validates the key

HasKey ( string key ) : bool

Validates that key is not whitespace or null.

SecureStorageImplementationBase ( ) : System

Default constructor

SetValue ( string key, string value ) : bool

Validates that key is not whitespace or null. And value is not null

Method Details

DeleteKey() public method

Validates that key is not whitespace or null.
public DeleteKey ( string key ) : bool
key string
return bool

GetValue() public method

Validates the key
public GetValue ( string key, string defaultValue = null ) : string
key string Key.
defaultValue string Default value.
return string

HasKey() public method

Validates that key is not whitespace or null.
public HasKey ( string key ) : bool
key string
return bool

SecureStorageImplementationBase() public method

Default constructor
public SecureStorageImplementationBase ( ) : System
return System

SetValue() public method

Validates that key is not whitespace or null. And value is not null
public SetValue ( string key, string value ) : bool
key string
value string
return bool