108 references to KeyContainerPermissionFlags
mscorlib (80)
system\security\cryptography\dsacryptoserviceprovider.cs (9)
173
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
175
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Delete);
178
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Create);
195
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
196
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Export);
226
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
227
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Import);
315
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
316
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Sign);
system\security\cryptography\icspasymmetricalgorithm.cs (5)
33
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
34
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open);
187
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
189
KeyContainerPermissionFlags
.ChangeAcl |
190
KeyContainerPermissionFlags
.ViewAcl);
system\security\cryptography\rsacryptoserviceprovider.cs (11)
225
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
227
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Delete);
230
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Create);
249
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
250
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Export);
289
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
290
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Import);
357
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
358
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Sign);
431
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
432
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(_parameters,
KeyContainerPermissionFlags
.Decrypt);
system\security\cryptography\utils.cs (9)
209
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
217
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Create);
226
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open);
338
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
339
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Export);
358
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
359
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.ChangeAcl);
429
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
430
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Import);
system\security\cryptography\x509certificates\x509certificate.cs (4)
751
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.Open |
KeyContainerPermissionFlags
.Export);
793
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.Create);
833
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.Create);
system\security\permissions\keycontainerpermission.cs (38)
54
private
KeyContainerPermissionFlags
m_flags;
61
public KeyContainerPermissionAccessEntry(string keyContainerName,
KeyContainerPermissionFlags
flags) :
65
public KeyContainerPermissionAccessEntry(CspParameters parameters,
KeyContainerPermissionFlags
flags) :
75
string keyContainerName, int keySpec,
KeyContainerPermissionFlags
flags) {
161
public
KeyContainerPermissionFlags
Flags {
228
private
KeyContainerPermissionFlags
m_globalFlags;
231
internal KeyContainerPermissionAccessEntryCollection (
KeyContainerPermissionFlags
globalFlags) {
373
private
KeyContainerPermissionFlags
m_flags;
378
m_flags =
KeyContainerPermissionFlags
.AllFlags;
380
m_flags =
KeyContainerPermissionFlags
.NoFlags;
386
public KeyContainerPermission (
KeyContainerPermissionFlags
flags) {
392
public KeyContainerPermission (
KeyContainerPermissionFlags
flags, KeyContainerPermissionAccessEntry[] accessList) {
405
public
KeyContainerPermissionFlags
Flags {
418
if (m_flags !=
KeyContainerPermissionFlags
.AllFlags)
422
if ((accessEntry.Flags &
KeyContainerPermissionFlags
.AllFlags) !=
KeyContainerPermissionFlags
.AllFlags)
430
if (this.Flags ==
KeyContainerPermissionFlags
.NoFlags) {
432
if (accessEntry.Flags !=
KeyContainerPermissionFlags
.NoFlags)
462
KeyContainerPermissionFlags
targetFlags = GetApplicableFlags(accessEntry, operand);
471
KeyContainerPermissionFlags
sourceFlags = GetApplicableFlags(accessEntry, this);
490
KeyContainerPermissionFlags
flags_intersect = operand.m_flags & this.m_flags;
512
KeyContainerPermissionFlags
flags_union = (
KeyContainerPermissionFlags
) (m_flags | operand.m_flags);
527
KeyContainerPermission cp = new KeyContainerPermission((
KeyContainerPermissionFlags
)m_flags);
562
m_flags =
KeyContainerPermissionFlags
.AllFlags;
567
m_flags =
KeyContainerPermissionFlags
.NoFlags;
570
KeyContainerPermissionFlags
flags = (
KeyContainerPermissionFlags
) Enum.Parse(typeof(
KeyContainerPermissionFlags
), strFlags);
612
KeyContainerPermissionFlags
flags =
KeyContainerPermissionFlags
.NoFlags;
627
flags = (
KeyContainerPermissionFlags
) Enum.Parse(typeof(
KeyContainerPermissionFlags
), strAttrValue);
654
internal static void VerifyFlags (
KeyContainerPermissionFlags
flags) {
655
if ((flags & ~
KeyContainerPermissionFlags
.AllFlags) != 0)
660
private static
KeyContainerPermissionFlags
GetApplicableFlags (KeyContainerPermissionAccessEntry accessEntry, KeyContainerPermission target) {
661
KeyContainerPermissionFlags
flags =
KeyContainerPermissionFlags
.NoFlags;
system\security\permissions\permissionattributes.cs (4)
343
KeyContainerPermissionFlags
m_flags =
KeyContainerPermissionFlags
.NoFlags;
379
public
KeyContainerPermissionFlags
Flags {
392
KeyContainerPermission cp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
System (6)
net\System\Net\Internal.cs (1)
947
internal static readonly KeyContainerPermission KeyContainerPermissionOpen = new KeyContainerPermission(
KeyContainerPermissionFlags
.Open);
security\system\security\cryptography\cryptoapi.cs (5)
3016
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
3017
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open);
3632
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.Create);
3877
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.Open |
KeyContainerPermissionFlags
.Export);
System.Core (10)
System\Security\Cryptography\CngKey.cs (9)
359
internal KeyContainerPermission BuildKeyContainerPermission(
KeyContainerPermissionFlags
flags) {
383
permission = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
427
KeyContainerPermissionAccessEntry access = new KeyContainerPermissionAccessEntry(keyName,
KeyContainerPermissionFlags
.Create);
430
KeyContainerPermission permission = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
467
KeyContainerPermission permission = BuildKeyContainerPermission(
KeyContainerPermissionFlags
.Delete);
593
new KeyContainerPermission(
KeyContainerPermissionFlags
.Import).Demand();
626
KeyContainerPermission permission = BuildKeyContainerPermission(
KeyContainerPermissionFlags
.Export);
705
KeyContainerPermissionAccessEntry access = new KeyContainerPermissionAccessEntry(keyName,
KeyContainerPermissionFlags
.Open);
708
KeyContainerPermission permission = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
System\Security\Cryptography\ECDsaCng.cs (1)
312
KeyContainerPermission permission = Key.BuildKeyContainerPermission(
KeyContainerPermissionFlags
.Sign);
System.Security (11)
system\security\cryptography\cryptoapi.cs (2)
2495
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
2496
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open);
system\security\cryptography\pkcs\envelopedpkcs7.cs (3)
275
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
276
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open |
KeyContainerPermissionFlags
.Decrypt);
system\security\cryptography\pkcs\signedpkcs7.cs (3)
199
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
200
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open |
KeyContainerPermissionFlags
.Sign);
system\security\cryptography\pkcs\signerinfo.cs (3)
294
KeyContainerPermission kp = new KeyContainerPermission(
KeyContainerPermissionFlags
.NoFlags);
295
KeyContainerPermissionAccessEntry entry = new KeyContainerPermissionAccessEntry(parameters,
KeyContainerPermissionFlags
.Open |
KeyContainerPermissionFlags
.Sign);
System.ServiceModel (1)
System\ServiceModel\Security\SecurityUtils.cs (1)
945
[KeyContainerPermission(SecurityAction.Assert, Flags =
KeyContainerPermissionFlags
.Open)]