C# 클래스 Plugin.SecureStorage.SecureStorageImplementation

Secure storage implementation for iOS. It is primarily for storing secure strings such as generic password.
상속: Plugin.SecureStorage.Abstractions.SecureStorageImplementationBase
파일 보기 프로젝트 열기: sameerkapps/SecureStorage 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

DeleteKey() 공개 메소드

Deletes the key and corresponding value from the storage
public DeleteKey ( string key ) : bool
key string
리턴 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 ) : 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
리턴 bool

LoadData() 보호된 메소드

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

LoadDataAsync() 보호된 메소드

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

SaveData() 보호된 메소드

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

SecureStorageImplementation() 공개 메소드

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

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

프로퍼티 상세

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

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

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

Password for storage
public static string StoragePassword
리턴 string