C# 클래스 Plugin.SecureStorage.WinSecureStorageBase

Base class for handling in memory operation for windows platform The derived classes must take care of persisting the information
상속: Plugin.SecureStorage.Abstractions.SecureStorageImplementationBase
파일 보기 프로젝트 열기: sameerkapps/SecureStorage

공개 프로퍼티들

프로퍼티 타입 설명
StorageFile string
StoragePassword string

보호된 프로퍼티들

프로퍼티 타입 설명
StoragePasswordArray byte[]

공개 메소드들

메소드 설명
DeleteKey ( string key ) : bool

Deletes the key and corresponding value from the storage

GetValue ( string key, string defaultValue = null ) : 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

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.

보호된 메소드들

메소드 설명
LoadData ( ) : byte[]

Derived classes must implement this method. Derived class will read the data from the storage, decrypt it and return clear data.

SaveData ( byte data ) : void

Derived classes must implement this method. Derived class will encrypt the data and save it.

WinSecureStorageBase ( ) : System

Default constructor, validates settings, loads the store

비공개 메소드들

메소드 설명
LoadFromStorage ( ) : void

Loads the dictionary from storge

SaveToStorage ( ) : void

method to encrypt and save dictionary to storage

메소드 상세

DeleteKey() 공개 메소드

Deletes the key and corresponding value from the storage
public DeleteKey ( string key ) : bool
key string Key.
리턴 bool

GetValue() 공개 메소드

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

HasKey() 공개 메소드

Determines whether specified key exists in the storage
public HasKey ( string key ) : bool
key string Key.
리턴 bool

LoadData() 보호된 추상적인 메소드

Derived classes must implement this method. Derived class will read the data from the storage, decrypt it and return clear data.
protected abstract LoadData ( ) : byte[]
리턴 byte[]

SaveData() 보호된 추상적인 메소드

Derived classes must implement this method. Derived class will encrypt the data and save it.
protected abstract SaveData ( byte data ) : void
data byte Unencrypted data
리턴 void

SetValue() 공개 메소드

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.
리턴 bool

WinSecureStorageBase() 보호된 메소드

Default constructor, validates settings, loads the store
protected WinSecureStorageBase ( ) : System
리턴 System

프로퍼티 상세

StorageFile 공개적으로 정적으로 프로퍼티

Name of the storage file.
public static string StorageFile
리턴 string

StoragePassword 공개적으로 정적으로 프로퍼티

Password for storage. Must be set prior to usage in Android and Windows
public static string StoragePassword
리턴 string

StoragePasswordArray 보호되어 있는 프로퍼티

array corresponding to the password
protected byte[] StoragePasswordArray
리턴 byte[]