C# 클래스 KeePassLib.Serialization.KdbxFile

Serialization to KeePass KDBX files.
파일 보기 프로젝트 열기: cappert/keepass2 1 사용 예제들

공개 메소드들

메소드 설명
DetermineLanguageId ( ) : void

Call this once to determine the current localization settings.

KdbxFile ( PwDatabase pwDataStore ) : System

Default constructor.

Load ( Stream sSource, KdbxFormat kdbFormat, IStatusLogger slLogger ) : void

Load a KDB file from a stream.

Load ( string strFilePath, KdbxFormat kdbFormat, IStatusLogger slLogger ) : void

Load a KDB file from a file.

ReadEntries ( Stream msData ) : List

Read entries from a stream.

Save ( Stream sSaveTo, PwGroup pgDataSource, KdbxFormat 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.

비공개 메소드들

메소드 설명
AttachStreamDecryptor ( Stream s ) : 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
CommonCleanUpRead ( Stream sSource, HashingStreamEx hashedStream ) : void
CommonCleanUpWrite ( Stream sSaveTo, HashingStreamEx hashedStream ) : void
CreateStdXmlReaderSettings ( ) : XmlReaderSettings
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
ReadEntries ( PwDatabase pwDatabase, Stream msData ) : List
ReadHeader ( BinaryReaderEx br ) : void
ReadHeaderField ( BinaryReaderEx brSource ) : bool
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
SetCipher ( byte pbID ) : void
SetCompressionFlags ( byte pbFlags ) : void
SetInnerRandomStreamID ( byte pbID ) : 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 ( Stream s ) : void
WriteHeaderField ( Stream s, KdbxHeaderFieldID 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

KdbxFile() 공개 메소드

Default constructor.
public KdbxFile ( PwDatabase pwDataStore ) : System
pwDataStore PwDatabase The PwDatabase instance that the /// class will load file data into or use to create a KDBX file.
리턴 System

Load() 공개 메소드

Load a KDB file from a stream.
public Load ( Stream sSource, KdbxFormat kdbFormat, IStatusLogger slLogger ) : void
sSource Stream Stream to read the data from. Must contain /// a KDBX stream.
kdbFormat KdbxFormat Format specifier.
slLogger IStatusLogger Status logger (optional).
리턴 void

Load() 공개 메소드

Load a KDB file from a file.
public Load ( string strFilePath, KdbxFormat kdbFormat, IStatusLogger slLogger ) : void
strFilePath string File to load.
kdbFormat KdbxFormat Format specifier.
slLogger IStatusLogger Status logger (optional).
리턴 void

ReadEntries() 공개 정적인 메소드

Read entries from a stream.
public static ReadEntries ( Stream msData ) : List
msData Stream Input stream to read the entries from.
리턴 List

Save() 공개 메소드

Save the contents of the current PwDatabase to a KDBX file.
public Save ( Stream sSaveTo, PwGroup pgDataSource, KdbxFormat 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 KdbxFormat 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