This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,150 @@
using System;
using System.Runtime.InteropServices;
namespace System.Security.Policy
{
/// <summary>Represents the context for the trust manager to consider when making the decision to run an application, and when setting up the security on a new <see cref="T:System.AppDomain" /> in which to run an application.</summary>
// Token: 0x020005A2 RID: 1442
[ComVisible(true)]
public class TrustManagerContext
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.TrustManagerContext" /> class. </summary>
// Token: 0x060034CE RID: 13518 RVA: 0x000B6184 File Offset: 0x000B4384
public TrustManagerContext()
: this(TrustManagerUIContext.Run)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Policy.TrustManagerContext" /> class using the specified <see cref="T:System.Security.Policy.TrustManagerUIContext" /> object. </summary>
/// <param name="uiContext">One of the enumeration values that specifies the type of trust manager user interface to use. </param>
// Token: 0x060034CF RID: 13519 RVA: 0x000B6190 File Offset: 0x000B4390
public TrustManagerContext(TrustManagerUIContext uiContext)
{
this._ignorePersistedDecision = false;
this._noPrompt = false;
this._keepAlive = false;
this._persist = false;
this._ui = uiContext;
}
/// <summary>Gets or sets a value indicating whether the application security manager should ignore any persisted decisions and call the trust manager.</summary>
/// <returns>true to call the trust manager; otherwise, false. </returns>
// Token: 0x17000A5B RID: 2651
// (get) Token: 0x060034D0 RID: 13520 RVA: 0x000B61BC File Offset: 0x000B43BC
// (set) Token: 0x060034D1 RID: 13521 RVA: 0x000B61C4 File Offset: 0x000B43C4
public virtual bool IgnorePersistedDecision
{
get
{
return this._ignorePersistedDecision;
}
set
{
this._ignorePersistedDecision = value;
}
}
/// <summary>Gets or sets a value indicating whether the trust manager should cache state for this application, to facilitate future requests to determine application trust.</summary>
/// <returns>true to cache state data; otherwise, false. The default is false.</returns>
// Token: 0x17000A5C RID: 2652
// (get) Token: 0x060034D2 RID: 13522 RVA: 0x000B61D0 File Offset: 0x000B43D0
// (set) Token: 0x060034D3 RID: 13523 RVA: 0x000B61D8 File Offset: 0x000B43D8
public virtual bool KeepAlive
{
get
{
return this._keepAlive;
}
set
{
this._keepAlive = value;
}
}
/// <summary>Gets or sets a value indicating whether the trust manager should prompt the user for trust decisions.</summary>
/// <returns>true to not prompt the user; false to prompt the user. The default is false.</returns>
// Token: 0x17000A5D RID: 2653
// (get) Token: 0x060034D4 RID: 13524 RVA: 0x000B61E4 File Offset: 0x000B43E4
// (set) Token: 0x060034D5 RID: 13525 RVA: 0x000B61EC File Offset: 0x000B43EC
public virtual bool NoPrompt
{
get
{
return this._noPrompt;
}
set
{
this._noPrompt = value;
}
}
/// <summary>Gets or sets a value indicating whether the user's response to the consent dialog should be persisted. </summary>
/// <returns>true to cache state data; otherwise, false. The default is true.</returns>
// Token: 0x17000A5E RID: 2654
// (get) Token: 0x060034D6 RID: 13526 RVA: 0x000B61F8 File Offset: 0x000B43F8
// (set) Token: 0x060034D7 RID: 13527 RVA: 0x000B6200 File Offset: 0x000B4400
public virtual bool Persist
{
get
{
return this._persist;
}
set
{
this._persist = value;
}
}
/// <summary>Gets or sets the identity of the previous application identity.</summary>
/// <returns>An <see cref="T:System.ApplicationIdentity" /> object representing the previous <see cref="T:System.ApplicationIdentity" />.</returns>
// Token: 0x17000A5F RID: 2655
// (get) Token: 0x060034D8 RID: 13528 RVA: 0x000B620C File Offset: 0x000B440C
// (set) Token: 0x060034D9 RID: 13529 RVA: 0x000B6214 File Offset: 0x000B4414
public virtual ApplicationIdentity PreviousApplicationIdentity
{
get
{
return this._previousId;
}
set
{
this._previousId = value;
}
}
/// <summary>Gets or sets the type of user interface the trust manager should display.</summary>
/// <returns>One of the enumeration values. The default is <see cref="F:System.Security.Policy.TrustManagerUIContext.Run" />. </returns>
// Token: 0x17000A60 RID: 2656
// (get) Token: 0x060034DA RID: 13530 RVA: 0x000B6220 File Offset: 0x000B4420
// (set) Token: 0x060034DB RID: 13531 RVA: 0x000B6228 File Offset: 0x000B4428
public virtual TrustManagerUIContext UIContext
{
get
{
return this._ui;
}
set
{
this._ui = value;
}
}
// Token: 0x0400157D RID: 5501
private bool _ignorePersistedDecision;
// Token: 0x0400157E RID: 5502
private bool _noPrompt;
// Token: 0x0400157F RID: 5503
private bool _keepAlive;
// Token: 0x04001580 RID: 5504
private bool _persist;
// Token: 0x04001581 RID: 5505
private ApplicationIdentity _previousId;
// Token: 0x04001582 RID: 5506
private TrustManagerUIContext _ui;
}
}