11 instantiations of SecureString
mscorlib (1)
system\security\securestring.cs (1)
174
return new
SecureString
(this);
PresentationFramework (3)
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
207
using (SecureString securePassword = new
SecureString
())
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (2)
51
_password = new
SecureString
();
557
_password = (value == null) ? new
SecureString
() : value.Copy();
System (3)
net\System\Net\NetworkCredential.cs (1)
159
m_password = new
SecureString
(); // makes 0 length string
net\System\Net\UnsafeNativeMethods.cs (2)
3397
return new
SecureString
();
3401
secureString = new
SecureString
(pch, plainString.Length);
System.Management (3)
managementoptions.cs (3)
1336
securePassword = new
SecureString
();
1344
SecureString tempStr = new
SecureString
();
1567
this.securePassword = new
SecureString
();
System.Web.Extensions (1)
ClientServices\ClientFormsIdentity.cs (1)
72
SecureString ss = new
SecureString
();
71 references to SecureString
mscorlib (19)
system\runtime\interopservices\marshal.cs (5)
2659
public static IntPtr SecureStringToBSTR(
SecureString
s) {
2670
public static IntPtr SecureStringToCoTaskMemAnsi(
SecureString
s) {
2680
public static IntPtr SecureStringToCoTaskMemUnicode(
SecureString
s)
2715
public static IntPtr SecureStringToGlobalAllocAnsi(
SecureString
s) {
2725
public static IntPtr SecureStringToGlobalAllocUnicode(
SecureString
s) {
system\security\cryptography\cryptoapitransform.cs (3)
336
private
SecureString
m_keyPassword;
337
public
SecureString
KeyPassword {
384
CryptoKeySecurity cryptoKeySecurity,
SecureString
keyPassword)
system\security\cryptography\x509certificates\x509certificate.cs (7)
112
public X509Certificate (byte[] rawData,
SecureString
password):this() {
128
public X509Certificate (byte[] rawData,
SecureString
password, X509KeyStorageFlags keyStorageFlags):this() {
159
public X509Certificate (string fileName,
SecureString
password):this() {
179
public X509Certificate (string fileName,
SecureString
password, X509KeyStorageFlags keyStorageFlags):this() {
535
public virtual void Import(byte[] rawData,
SecureString
password, X509KeyStorageFlags keyStorageFlags) {
570
public virtual void Import(string fileName,
SecureString
password, X509KeyStorageFlags keyStorageFlags) {
590
public virtual byte[] Export(X509ContentType contentType,
SecureString
password) {
system\security\cryptography\x509certificates\x509utils.cs (2)
330
SecureString
securePwd = password as
SecureString
;
system\security\securestring.cs (2)
53
internal SecureString(
SecureString
str) {
172
public
SecureString
Copy() {
PresentationFramework (7)
src\Framework\System\Windows\Controls\PasswordBox.cs (4)
179
using (
SecureString
securePassword = this.SecurePassword)
207
using (
SecureString
securePassword = new SecureString())
233
public
SecureString
SecurePassword
1237
private void SetSecurePassword(
SecureString
value)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (3)
543
internal
SecureString
GetPasswordCopy()
549
internal void SetPassword(
SecureString
value)
945
private
SecureString
_password;
System (18)
net\System\Net\NetworkCredential.cs (5)
31
private
SecureString
m_password;
57
public NetworkCredential(string userName,
SecureString
password)
81
public NetworkCredential(string userName,
SecureString
password, string domain) {
152
public
SecureString
SecurePassword {
205
internal
SecureString
InternalGetSecurePassword()
net\System\Net\UnsafeNativeMethods.cs (3)
3371
internal static string CreateString(
SecureString
secureString)
3392
internal static
SecureString
CreateSecureString(string plainString)
3394
SecureString
secureString;
security\system\security\cryptography\x509\x509certificate2.cs (6)
331
public X509Certificate2 (byte[] rawData,
SecureString
password) : base (rawData, password) {
344
public X509Certificate2 (byte[] rawData,
SecureString
password, X509KeyStorageFlags keyStorageFlags) : base (rawData, password, keyStorageFlags) {
374
public X509Certificate2 (string fileName,
SecureString
password) : base (fileName, password) {
393
public X509Certificate2 (string fileName,
SecureString
password, X509KeyStorageFlags keyStorageFlags) : base (fileName, password, keyStorageFlags) {
1071
public override void Import(byte[] rawData,
SecureString
password, X509KeyStorageFlags keyStorageFlags) {
1104
public override void Import(string fileName,
SecureString
password, X509KeyStorageFlags keyStorageFlags) {
services\monitoring\system\diagnosticts\Process.cs (2)
2288
public static Process Start( string fileName, string userName,
SecureString
password, string domain ) {
2299
public static Process Start( string fileName, string arguments, string userName,
SecureString
password, string domain ) {
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (2)
51
SecureString
password;
336
public
SecureString
Password {
System.Core (2)
System\Diagnostics\Eventing\Reader\EventLogSession.cs (2)
110
this(server, null, null, (
SecureString
)null, SessionAuthentication.Default) {
115
public EventLogSession(string server, string domain, string user,
SecureString
password, SessionAuthentication logOnType) {
System.Data (16)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
347
SecureString
password = connection._credential.Password.Copy();
2068
public static void ChangePassword(string connectionString, SqlCredential credential,
SecureString
newSecurePassword) {
2125
private static void ChangePassword(string connectionString, SqlConnectionString connectionOptions, SqlCredential credential, string newPassword,
SecureString
newSecurePassword ) {
fx\src\data\System\Data\SqlClient\SqlCredential.cs (3)
21
SecureString
_password;
31
public SqlCredential(string userId,
SecureString
password)
73
public
SecureString
Password
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (6)
326
SecureString
newSecurePassword,
1256
private void Login(ServerInfo server, TimeoutTimer timeout, string newPassword,
SecureString
newSecurePassword) {
1373
string newPassword,
SecureString
newSecurePassword, bool redirectedUserInstance) {
1463
private void LoginNoFailover(ServerInfo serverInfo, string newPassword,
SecureString
newSecurePassword, bool redirectedUserInstance,
1718
SecureString
newSecurePassword,
1952
private void AttemptOneLogin(ServerInfo serverInfo, string newPassword,
SecureString
newSecurePassword, bool ignoreSniOpenTimeout, TimeoutTimer timeout, bool withFailover = false, bool isFirstTransparentAttempt = true, bool disableTnir = false)
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
456
internal
SecureString
newSecurePassword; // new password in SecureString for resetting pasword
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
115
private
SecureString
[] _securePasswords = new
SecureString
[2] {null, null};
2638
internal void WriteSecureString(
SecureString
secureString) {
System.Management (5)
managementoptions.cs (5)
1264
private
SecureString
securePassword = null;
1344
SecureString
tempStr = new SecureString();
1377
public
SecureString
SecurePassword
1598
string username,
SecureString
password, string authority,
1659
internal
SecureString
GetSecurePassword()
System.Web.Extensions (4)
ClientServices\ClientFormsIdentity.cs (4)
65
private
SecureString
_Password;
69
private static
SecureString
GetSecureStringFromString(string password)
72
SecureString
ss = new SecureString();
81
private static string GetStringFromSecureString(
SecureString
securePass)