C# Class KeePass.Storage.DatabaseInfo

Datei anzeigen Open project: gkardava/WinPass Class Usage Examples

Private Properties

Property Type Description
ClearPassword void
GetKeyFile byte[]
GetSavedPassword KeePass.IO.Data.DbPersistentData
GetSavedPassword KeePass.IO.Data.DbPersistentData
LoadDetails void
Open void
Save void
SaveDetails void
SaveDetails void
UpdateSavedPassword void
Upgrade void

Public Methods

Method Description
ClearPassword ( ) : void

Clears the saved password.

DatabaseInfo ( ) : System
DatabaseInfo ( string folder ) : System
Delete ( ) : void

Deletes this database.

Equals ( object obj ) : bool
GetAll ( ) : IList

Gets all databases.

GetHashCode ( ) : int
IsValid ( IsolatedStorageFile store ) : bool

Determines whether the this database has stored data.

LoadDetails ( ) : void

Loads the Details data.

Open ( Dispatcher dispatcher, string password, bool savePassword ) : OpenDbResults

Opens the database using the specified password.

Open ( Dispatcher dispatcher ) : void

Opens the database using saved password dispatcher.

OpenDatabaseFile ( Action action ) : void

Opens the database file.

SaveDetails ( ) : void

Saves the Details information.

SetDatabase ( Action action ) : void
SetDatabase ( Stream data, KeePass.Storage.DatabaseDetails details ) : void

Sets the database.

SetKeyFile ( byte keyFile ) : void

Sets the key file.

Protected Methods

Method Description
Equals ( DatabaseInfo other ) : bool

Private Methods

Method Description
ClearPassword ( IsolatedStorageFile store ) : void
GetKeyFile ( IsolatedStorageFile store ) : byte[]
GetSavedPassword ( IsolatedStorageFile store ) : KeePass.IO.Data.DbPersistentData

Gets the saved password.

GetSavedPassword ( IsolatedStorageFile store, string protectPath, string parsedXmlPath, string masterPassPath ) : KeePass.IO.Data.DbPersistentData

Gets the saved password.

LoadDetails ( IsolatedStorageFile store ) : void
Open ( IsolatedStorageFile store, KeePass.IO.Data.DbPersistentData xml, Dispatcher dispatcher ) : void
Save ( IsolatedStorageFile store, KeePass.IO.Data.DbPersistentData xml ) : void

Saves user password.

SaveDetails ( IsolatedStorageFile store ) : void
SaveDetails ( IsolatedStorageFileStream fs ) : void
UpdateSavedPassword ( IsolatedStorageFile store ) : void
Upgrade ( IsolatedStorageFile store ) : void

Method Details

ClearPassword() public method

Clears the saved password.
public ClearPassword ( ) : void
return void

DatabaseInfo() public method

public DatabaseInfo ( ) : System
return System

DatabaseInfo() public method

public DatabaseInfo ( string folder ) : System
folder string
return System

Delete() public method

Deletes this database.
public Delete ( ) : void
return void

Equals() protected method

protected Equals ( DatabaseInfo other ) : bool
other DatabaseInfo
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetAll() public static method

Gets all databases.
public static GetAll ( ) : IList
return IList

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsValid() public method

Determines whether the this database has stored data.
public IsValid ( IsolatedStorageFile store ) : bool
store System.IO.IsolatedStorage.IsolatedStorageFile The store.
return bool

LoadDetails() public method

Loads the Details data.
public LoadDetails ( ) : void
return void

Open() public method

Opens the database using the specified password.
public Open ( Dispatcher dispatcher, string password, bool savePassword ) : OpenDbResults
dispatcher System.Windows.Threading.Dispatcher The dispatcher.
password string The password.
savePassword bool set to true to save user password.
return OpenDbResults

Open() public method

Opens the database using saved password dispatcher.
public Open ( Dispatcher dispatcher ) : void
dispatcher System.Windows.Threading.Dispatcher The dispatcher.
return void

OpenDatabaseFile() public method

Opens the database file.
public OpenDatabaseFile ( Action action ) : void
action Action The action.
return void

SaveDetails() public method

Saves the Details information.
public SaveDetails ( ) : void
return void

SetDatabase() public method

public SetDatabase ( Action action ) : void
action Action
return void

SetDatabase() public method

Sets the database.
public SetDatabase ( Stream data, KeePass.Storage.DatabaseDetails details ) : void
data Stream The data.
details KeePass.Storage.DatabaseDetails The details.
return void

SetKeyFile() public method

Sets the key file.
public SetKeyFile ( byte keyFile ) : void
keyFile byte The key file.
return void