mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-19 09:56:10 +00:00
f2ac1ece55
add
92 lines
3.4 KiB
C#
92 lines
3.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Microsoft.InfoCards.RequestSecurityTokenParameters
|
|
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
|
// MVID: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Expiro.w-1f15ee7e9f7da02b6bfb4c5a5e6484eb9fa71b82d3699c54bcc7a31794b4a66d.exe
|
|
|
|
using Microsoft.InfoCards.Diagnostics;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Security.Cryptography.Xml;
|
|
using System.ServiceModel.Channels;
|
|
|
|
namespace Microsoft.InfoCards
|
|
{
|
|
internal class RequestSecurityTokenParameters
|
|
{
|
|
private AddressingVersion m_addressingVersion;
|
|
private GetBrowserTokenParameters m_browserTokenParams;
|
|
private InfoCardPolicy m_policy;
|
|
private InfoCard m_card;
|
|
private bool m_discloseOptionalClaims;
|
|
private RSAKeyValue m_rsaKeyValue;
|
|
private byte[] m_clientEntropyForSymmetric;
|
|
private CultureInfo m_cultureInfo;
|
|
private string m_context;
|
|
private Dictionary<string, bool> m_disclosedClaims;
|
|
private ProtocolProfile m_profile;
|
|
|
|
public AddressingVersion Version => this.m_addressingVersion;
|
|
|
|
public GetBrowserTokenParameters BrowserTokenParams => this.m_browserTokenParams;
|
|
|
|
public InfoCardPolicy Policy => this.m_policy;
|
|
|
|
public InfoCard Card => this.m_card;
|
|
|
|
public bool DiscloseOptionalClaims => this.m_discloseOptionalClaims;
|
|
|
|
public RSAKeyValue RSAKey => this.m_rsaKeyValue;
|
|
|
|
public byte[] ClientEntropyForSymmetric => this.m_clientEntropyForSymmetric;
|
|
|
|
public CultureInfo Culture => this.m_cultureInfo;
|
|
|
|
public string Context => this.m_context;
|
|
|
|
public Dictionary<string, bool> DisclosedClaims => this.m_disclosedClaims;
|
|
|
|
public ProtocolProfile Profile => this.m_profile;
|
|
|
|
public RequestSecurityTokenParameters(
|
|
AddressingVersion version,
|
|
InfoCard card,
|
|
InfoCardPolicy policy,
|
|
bool discloseOptionalClaims,
|
|
RSAKeyValue rsaKeyValue,
|
|
Dictionary<string, bool> disclosedClaims,
|
|
string context,
|
|
byte[] clientEntropyForSymmetric,
|
|
CultureInfo displayCulture)
|
|
{
|
|
this.m_card = card;
|
|
this.m_policy = policy;
|
|
this.m_discloseOptionalClaims = discloseOptionalClaims;
|
|
this.m_rsaKeyValue = rsaKeyValue;
|
|
this.m_clientEntropyForSymmetric = clientEntropyForSymmetric;
|
|
this.m_profile = policy.ProtocolVersionProfile;
|
|
InfoCardTrace.Assert(this.m_rsaKeyValue == null && this.m_clientEntropyForSymmetric != null || this.m_rsaKeyValue == null && this.m_clientEntropyForSymmetric == null || this.m_rsaKeyValue != null && null == this.m_clientEntropyForSymmetric, "The three allowed cases are symmetric, noProofKey, asymmetric");
|
|
this.m_disclosedClaims = disclosedClaims;
|
|
this.m_addressingVersion = version;
|
|
this.m_context = context;
|
|
this.m_cultureInfo = displayCulture;
|
|
}
|
|
|
|
public RequestSecurityTokenParameters(
|
|
AddressingVersion addressing,
|
|
GetBrowserTokenParameters parameters,
|
|
ProtocolProfile profile,
|
|
InfoCardPolicy policy,
|
|
bool discloseOptionalClaims)
|
|
{
|
|
this.m_browserTokenParams = parameters;
|
|
this.m_addressingVersion = addressing;
|
|
this.m_policy = policy;
|
|
this.m_discloseOptionalClaims = discloseOptionalClaims;
|
|
this.m_context = Guid.NewGuid().ToString();
|
|
this.m_profile = profile;
|
|
}
|
|
}
|
|
}
|