Table of Contents

Class NonPersistingConnectionPasswordProtector

Namespace
ItTiger.TigerQuery.Core
Assembly
ItTiger.TigerQuery.Core.dll
Prevents plain-text passwords from surviving save or load without providing an alternative encrypted persistence mechanism.
public sealed class NonPersistingConnectionPasswordProtector : IConnectionPasswordProtector
Inheritance
NonPersistingConnectionPasswordProtector
Implements
Inherited Members

Remarks

Both operations clear PlainPassword. This is the non-Windows default, so SQL-password profiles require the password to be supplied again for each session.

Methods

ProtectForSave(SqlServerConnectionProfile)

Prepares a profile's password fields for JSON persistence.
public void ProtectForSave(SqlServerConnectionProfile profile)

Parameters

profile SqlServerConnectionProfile
The mutable profile about to be serialized.

Exceptions

ArgumentNullException
profile is null.

UnprotectAfterLoad(SqlServerConnectionProfile)

Restores usable in-memory password fields after JSON deserialization.
public void UnprotectAfterLoad(SqlServerConnectionProfile profile)

Parameters

profile SqlServerConnectionProfile
The mutable profile that was loaded.

Exceptions

ArgumentNullException
profile is null.