C# Класс KeePassLib.Serialization.Kdb4File

Serialization to KeePass KDB files.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DetermineLanguageId ( ) : void

Call this once to determine the current localization settings.

Kdb4File ( PwDatabase pwDataStore ) : System.IO.Compression

Default constructor.

Save ( Stream sSaveTo, PwGroup pgDataSource, Kdb4Format format, IStatusLogger slLogger ) : void

Save the contents of the current PwDatabase to a KDBX file.

WriteEntries ( Stream msOutput, PwEntry vEntries ) : bool

Write entries to a stream.

Приватные методы

Метод Описание
AttachStreamEncryptor ( Stream s ) : Stream
BinPoolAdd ( KeePassLib.Security.ProtectedBinary pb ) : void
BinPoolAdd ( ProtectedBinaryDictionary dict ) : void
BinPoolBuild ( PwGroup pgDataSource ) : void
BinPoolFind ( KeePassLib.Security.ProtectedBinary pb ) : string
BinPoolGet ( string strKey ) : KeePassLib.Security.ProtectedBinary
CommonCleanUpWrite ( Stream sSaveTo, HashingStreamEx hashedStream ) : void
CreateXmlReader ( Stream readerStream ) : XmlReader
EndGroup ( ) : void
EndXmlElement ( KdbContext ctx, XmlReader xr ) : KdbContext
ProcessNode ( XmlReader xr ) : XorredBuffer
ReadBool ( XmlReader xr, bool bDefault ) : bool
ReadDocumentStreamed ( XmlReader xr, Stream sParentStream ) : void
ReadInt ( XmlReader xr, int nDefault ) : int
ReadLong ( XmlReader xr, long lDefault ) : long
ReadProtectedBinary ( XmlReader xr ) : ProtectedBinary
ReadProtectedString ( XmlReader xr ) : ProtectedString
ReadString ( XmlReader xr ) : string
ReadStringRaw ( XmlReader xr ) : string
ReadTime ( XmlReader xr ) : DateTime
ReadUInt ( XmlReader xr, uint uDefault ) : uint
ReadULong ( XmlReader xr, ulong uDefault ) : ulong
ReadUnknown ( XmlReader xr ) : void
ReadUuid ( XmlReader xr ) : PwUuid
ReadXmlElement ( KdbContext ctx, XmlReader xr ) : KdbContext
ReadXmlStreamed ( Stream readerStream, Stream sParentStream ) : void
SaveBinary ( string strName, ProtectedBinary pb, string strSaveDir ) : void
StartGroup ( PwGroup pg ) : void
SubWriteValue ( ProtectedBinary value ) : void
SwitchContext ( KdbContext ctxCurrent, KdbContext ctxNew, XmlReader xr ) : KdbContext
WriteBinPool ( ) : void
WriteCustomIconList ( ) : void
WriteDocument ( PwGroup pgDataSource ) : void
WriteEntries ( Stream msOutput, PwDatabase pwDatabase, PwEntry vEntries ) : bool
WriteEntry ( PwEntry pe, bool bIsHistory ) : void
WriteHeader ( BinaryWriter bw ) : void
WriteHeaderField ( BinaryWriter bwOut, Kdb4HeaderFieldID kdbID, byte pbData ) : void
WriteList ( ProtectedBinaryDictionary dictBinaries ) : void
WriteList ( ProtectedStringDictionary dictStrings, bool bEntryStrings ) : void
WriteList ( string name, AutoTypeConfig cfgAutoType ) : void
WriteList ( string name, ITimeLogger times ) : void
WriteList ( string name, MemoryProtectionConfig value ) : void
WriteList ( string name, PwObjectList value ) : void
WriteList ( string name, PwObjectList value, bool bIsHistory ) : void
WriteList ( string name, StringDictionaryEx value ) : void
WriteMeta ( ) : void
WriteObject ( string name, DateTime value ) : void
WriteObject ( string name, ProtectedBinary value, bool bAllowRef ) : void
WriteObject ( string name, ProtectedString value, bool bIsEntryString ) : void
WriteObject ( string name, PwDeletedObject value ) : void
WriteObject ( string name, PwUuid value ) : void
WriteObject ( string name, bool value ) : void
WriteObject ( string name, int value ) : void
WriteObject ( string name, long value ) : void
WriteObject ( string name, string value, bool bFilterValueXmlChars ) : void
WriteObject ( string name, string strKeyName, string strValueName, string>.KeyValuePair kvp ) : void
WriteObject ( string name, uint value ) : void
WriteObject ( string name, ulong value ) : void

Описание методов

DetermineLanguageId() публичный статический Метод

Call this once to determine the current localization settings.
public static DetermineLanguageId ( ) : void
Результат void

Kdb4File() публичный Метод

Default constructor.
public Kdb4File ( PwDatabase pwDataStore ) : System.IO.Compression
pwDataStore PwDatabase The PwDatabase instance that the /// class will load file data into or use to create a KDBX file.
Результат System.IO.Compression

Save() публичный Метод

Save the contents of the current PwDatabase to a KDBX file.
public Save ( Stream sSaveTo, PwGroup pgDataSource, Kdb4Format format, IStatusLogger slLogger ) : void
sSaveTo Stream Stream to write the KDBX file into.
pgDataSource PwGroup Group containing all groups and /// entries to write. If null, the complete database will /// be written.
format Kdb4Format Format of the file to create.
slLogger IStatusLogger Logger that recieves status information.
Результат void

WriteEntries() публичный статический Метод

Write entries to a stream.
public static WriteEntries ( Stream msOutput, PwEntry vEntries ) : bool
msOutput Stream Output stream to which the entries will be written.
vEntries PwEntry Entries to serialize.
Результат bool