public sealed class ReportServerNetworkC redentials IReportServerCrede

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
public sealed class ReportServerNetworkCredentials : IReportServerCredentials
{
#region IReportServerCredentials Members
public bool GetFormsCredentials(out System.Net.Cookie authCookie, out string userName, out string password, out string authority)
{
authCookie = null;
userName = null;
password = null;
authority = null;
return false;
}
public WindowsIdentity ImpersonationUser
{
get
{
return null;
}
}
public System.Net.ICredentials NetworkCredentials
{
get
{
string userName = Properties.Settings.Default.UserName;
string domainName = Properties.Settings.Default.Domain;
string password = Properties.Settings.Default.Password;
return new System.Net.NetworkCredential(userName, password, domainName);
}
}
#endregion
}