Files
Dec2017-Script-Dump/mscorlib/System/Security/Policy/ApplicationSecurityInfo.cs
T
2026-06-04 11:42:34 +02:00

141 lines
4.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
namespace System.Security.Policy
{
/// <summary>Holds the security evidence for an application. This class cannot be inherited.</summary>
// Token: 0x0200057C RID: 1404
[ComVisible(true)]
public sealed class ApplicationSecurityInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.ApplicationSecurityInfo" /> class using the provided activation context. </summary>
/// <param name="activationContext">An <see cref="T:System.ActivationContext" /> object that uniquely identifies the target application.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="activationContext" /> is null. </exception>
// Token: 0x06003350 RID: 13136 RVA: 0x000B06A0 File Offset: 0x000AE8A0
public ApplicationSecurityInfo(ActivationContext activationContext)
{
if (activationContext == null)
{
throw new ArgumentNullException("activationContext");
}
this._context = activationContext;
}
/// <summary>Gets or sets the evidence for the application.</summary>
/// <returns>An <see cref="T:System.Security.Policy.Evidence" /> object for the application.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <see cref="P:System.Security.Policy.ApplicationSecurityInfo.ApplicationEvidence" /> is set to null. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlEvidence" />
/// </PermissionSet>
// Token: 0x17000A0F RID: 2575
// (get) Token: 0x06003351 RID: 13137 RVA: 0x000B06C0 File Offset: 0x000AE8C0
// (set) Token: 0x06003352 RID: 13138 RVA: 0x000B06C8 File Offset: 0x000AE8C8
public Evidence ApplicationEvidence
{
get
{
return this._evidence;
}
set
{
if (value == null)
{
throw new ArgumentNullException("ApplicationEvidence");
}
this._evidence = value;
}
}
/// <summary>Gets or sets the application identity information.</summary>
/// <returns>An <see cref="T:System.ApplicationId" /> object.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <see cref="P:System.Security.Policy.ApplicationSecurityInfo.ApplicationId" /> is set to null.</exception>
// Token: 0x17000A10 RID: 2576
// (get) Token: 0x06003353 RID: 13139 RVA: 0x000B06E4 File Offset: 0x000AE8E4
// (set) Token: 0x06003354 RID: 13140 RVA: 0x000B06EC File Offset: 0x000AE8EC
public ApplicationId ApplicationId
{
get
{
return this._appid;
}
set
{
if (value == null)
{
throw new ArgumentNullException("ApplicationId");
}
this._appid = value;
}
}
/// <summary>Gets or sets the default permission set.</summary>
/// <returns>A <see cref="T:System.Security.PermissionSet" /> object representing the default permissions for the application. The default is a <see cref="T:System.Security.PermissionSet" /> with a permission state of <see cref="F:System.Security.Permissions.PermissionState.None" /></returns>
/// <exception cref="T:System.ArgumentNullException">
/// <see cref="P:System.Security.Policy.ApplicationSecurityInfo.DefaultRequestSet" /> is set to null. </exception>
// Token: 0x17000A11 RID: 2577
// (get) Token: 0x06003355 RID: 13141 RVA: 0x000B0708 File Offset: 0x000AE908
// (set) Token: 0x06003356 RID: 13142 RVA: 0x000B0724 File Offset: 0x000AE924
public PermissionSet DefaultRequestSet
{
get
{
if (this._defaultSet == null)
{
return new PermissionSet(PermissionState.None);
}
return this._defaultSet;
}
set
{
if (value == null)
{
throw new ArgumentNullException("DefaultRequestSet");
}
this._defaultSet = value;
}
}
/// <summary>Gets or sets the top element in the application, which is described in the deployment identity.</summary>
/// <returns>An <see cref="T:System.ApplicationId" /> object describing the top element of the application.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <see cref="P:System.Security.Policy.ApplicationSecurityInfo.DeploymentId" /> is set to null. </exception>
// Token: 0x17000A12 RID: 2578
// (get) Token: 0x06003357 RID: 13143 RVA: 0x000B0740 File Offset: 0x000AE940
// (set) Token: 0x06003358 RID: 13144 RVA: 0x000B0748 File Offset: 0x000AE948
public ApplicationId DeploymentId
{
get
{
return this._deployid;
}
set
{
if (value == null)
{
throw new ArgumentNullException("DeploymentId");
}
this._deployid = value;
}
}
// Token: 0x04001504 RID: 5380
private ActivationContext _context;
// Token: 0x04001505 RID: 5381
private Evidence _evidence;
// Token: 0x04001506 RID: 5382
private ApplicationId _appid;
// Token: 0x04001507 RID: 5383
private PermissionSet _defaultSet;
// Token: 0x04001508 RID: 5384
private ApplicationId _deployid;
}
}