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
profileSqlServerConnectionProfile- The mutable profile about to be serialized.
Exceptions
- ArgumentNullException
profileis null.
UnprotectAfterLoad(SqlServerConnectionProfile)
Restores usable in-memory password fields after JSON deserialization.
public void UnprotectAfterLoad(SqlServerConnectionProfile profile)
Parameters
profileSqlServerConnectionProfile- The mutable profile that was loaded.
Exceptions
- ArgumentNullException
profileis null.