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
}