44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace System.Security.Policy
|
|
{
|
|
// Token: 0x02000595 RID: 1429
|
|
internal class MonoTrustManager : IApplicationTrustManager, ISecurityEncodable
|
|
{
|
|
// Token: 0x0600342E RID: 13358 RVA: 0x000B347C File Offset: 0x000B167C
|
|
public ApplicationTrust DetermineApplicationTrust(ActivationContext activationContext, TrustManagerContext context)
|
|
{
|
|
if (activationContext == null)
|
|
{
|
|
throw new ArgumentNullException("activationContext");
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600342F RID: 13359 RVA: 0x000B3490 File Offset: 0x000B1690
|
|
public void FromXml(SecurityElement e)
|
|
{
|
|
if (e == null)
|
|
{
|
|
throw new ArgumentNullException("e");
|
|
}
|
|
if (e.Tag != "IApplicationTrustManager")
|
|
{
|
|
throw new ArgumentException("e", Locale.GetText("Invalid XML tag."));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06003430 RID: 13360 RVA: 0x000B34D0 File Offset: 0x000B16D0
|
|
public SecurityElement ToXml()
|
|
{
|
|
SecurityElement securityElement = new SecurityElement("IApplicationTrustManager");
|
|
securityElement.AddAttribute("class", typeof(MonoTrustManager).AssemblyQualifiedName);
|
|
securityElement.AddAttribute("version", "1");
|
|
return securityElement;
|
|
}
|
|
|
|
// Token: 0x04001559 RID: 5465
|
|
private const string tag = "IApplicationTrustManager";
|
|
}
|
|
}
|