1 write to credential
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
1310
login.
credential
= _credential;
12 references to credential
System.Data (12)
fx\src\data\System\Data\SqlClient\TdsParser.cs (12)
7119
Debug.Assert(rec.
credential
== null || (rec.
credential
!= null && TdsEnums.MAXLEN_USERNAME >= rec.
credential
.UserId.Length), "_credential.UserId.Length exceeds the max length for this value");
7122
Debug.Assert(rec.
credential
== null || (rec.
credential
!= null && TdsEnums.MAXLEN_PASSWORD >= rec.
credential
.Password.Length), "_credential.Password.Length exceeds the max length for this value");
7124
Debug.Assert(rec.
credential
!= null || rec.userName != null || rec.password != null, "cannot mix the new secure password system and the connection string based password");
7145
if (rec.
credential
!= null) {
7146
userName = rec.
credential
.UserId;
7147
encryptedPasswordLengthInBytes = rec.
credential
.Password.Length * 2;
7421
if (rec.
credential
!= null) {
7422
_physicalStateObj.WriteSecureString(rec.
credential
.Password);