本文整理汇总了C#中IdentityReference类的典型用法代码示例。如果您正苦于以下问题:C# IdentityReference类的具体用法?C# IdentityReference怎么用?C# IdentityReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IdentityReference类属于命名空间,在下文中一共展示了IdentityReference类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: RemoveAccess
public void RemoveAccess(IdentityReference identity, AccessControlType type)
{
if (this.DaclRetrieved())
{
ActiveDirectoryAccessRule activeDirectoryAccessRule = new ActiveDirectoryAccessRule(identity, ActiveDirectoryRights.GenericRead, type, ActiveDirectorySecurityInheritance.None);
base.RemoveAccessRuleAll(activeDirectoryAccessRule);
return;
}
else
{
throw new InvalidOperationException("CannotModifyDacl");
}
}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:ActiveDirectorySecurity.cs
示例2: SetGroup
public void SetGroup(IdentityReference identity);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例3: AuditRule
protected AuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags auditFlags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例4: AccessRuleFactory
public abstract AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例5: PurgeAccessRules
public virtual void PurgeAccessRules(IdentityReference identity);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例6: SemaphoreAuditRule
public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights eventRights, AuditFlags flags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs
示例7: ObjectAccessRule
protected ObjectAccessRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例8: ExtendedRightAccessRule
public ExtendedRightAccessRule (IdentityReference identity, AccessControlType type, Guid extendedRightType) : base(identity, 256, type, extendedRightType, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
{
}
开发者ID:nlhepler,项目名称:mono,代码行数:3,代码来源:ExtendedRightAccessRule.cs
示例9: ListChildrenAccessRule
public ListChildrenAccessRule (IdentityReference identity, AccessControlType type) : base(identity, 4, type, Guid.Empty, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
{
}
开发者ID:nlhepler,项目名称:mono,代码行数:3,代码来源:ListChildrenAccessRule.cs
示例10: AuditRuleFactory
public override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid)
{
return new ActiveDirectoryAuditRule(identityReference, accessMask, flags, objectGuid, isInherited, inheritanceFlags, propagationFlags, inheritedObjectGuid);
}
开发者ID:nickchal,项目名称:pash,代码行数:4,代码来源:ActiveDirectorySecurity.cs
示例11: AccessRuleFactory
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type, Guid objectGuid, Guid inheritedObjectGuid)
{
return new ActiveDirectoryAccessRule(identityReference, accessMask, type, objectGuid, isInherited, inheritanceFlags, propagationFlags, inheritedObjectGuid);
}
开发者ID:nickchal,项目名称:pash,代码行数:4,代码来源:ActiveDirectorySecurity.cs
示例12: RemoveAudit
public void RemoveAudit(IdentityReference identity)
{
if (this.SaclRetrieved())
{
ActiveDirectoryAuditRule activeDirectoryAuditRule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Success | AuditFlags.Failure, ActiveDirectorySecurityInheritance.None);
base.RemoveAuditRuleAll(activeDirectoryAuditRule);
return;
}
else
{
throw new InvalidOperationException("CannotModifySacl");
}
}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:ActiveDirectorySecurity.cs
示例13: EventWaitHandleAuditRule
public EventWaitHandleAuditRule(IdentityReference identity, EventWaitHandleRights eventRights, AuditFlags flags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs
示例14: DeleteTreeAccessRule
public DeleteTreeAccessRule(IdentityReference identity, AccessControlType type, ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType) : base(identity, 0x40, type, Guid.Empty, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), inheritedObjectType)
{
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:3,代码来源:DeleteTreeAccessRule.cs
示例15: SemaphoreAccessRule
public SemaphoreAccessRule(IdentityReference identity, SemaphoreRights eventRights, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs
示例16: using
byte[] IAgentProtocol.SignData(IdentityReference identity, byte[] data)
{
var hWnd = NativeMethods.FindWindow("Pageant", "Pageant");
if (hWnd == IntPtr.Zero)
{
return new byte[0];
}
string mmFileName = Path.GetRandomFileName();
using (var mmFile = MemoryMappedFile.CreateNew(mmFileName, AGENT_MAX_MSGLEN))
{
using (var accessor = mmFile.CreateViewAccessor())
{
var security = mmFile.GetAccessControl();
security.SetOwner(System.Security.Principal.WindowsIdentity.GetCurrent().User);
mmFile.SetAccessControl(security);
accessor.Write(0, IPAddress.NetworkToHostOrder(AGENT_MAX_MSGLEN - 4));
accessor.Write(4, SSH2_AGENTC_SIGN_REQUEST);
accessor.Write(5, IPAddress.NetworkToHostOrder(identity.Blob.Length));
accessor.WriteArray(9, identity.Blob, 0, identity.Blob.Length);
accessor.Write(9 + identity.Blob.Length, IPAddress.NetworkToHostOrder(data.Length));
accessor.WriteArray(13 + identity.Blob.Length, data, 0, data.Length);
var copy = new COPYDATASTRUCT(AGENT_COPYDATA_ID, mmFileName);
if (NativeMethods.SendMessage(hWnd, WM_COPYDATA, IntPtr.Zero, ref copy) == IntPtr.Zero)
{
return new byte[0];
}
if (accessor.ReadByte(4) != SSH2_AGENT_SIGN_RESPONSE)
{
return new byte[0];
}
int size = IPAddress.HostToNetworkOrder(accessor.ReadInt32(5));
var ret = new byte[size];
accessor.ReadArray(9, ret, 0, size);
return ret;
}
}
}
开发者ID:cpascal,项目名称:win-sshfs,代码行数:47,代码来源:PageantProtocol.cs
示例17: PropertyAccessRule
public PropertyAccessRule(IdentityReference identity, AccessControlType type, PropertyAccess access, Guid propertyType, ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType) : base(identity, PropertyAccessTranslator.AccessMaskFromPropertyAccess(access), type, propertyType, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), inheritedObjectType)
{
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:3,代码来源:PropertyAccessRule.cs
示例18: ObjectAuditRule
protected ObjectAuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AuditFlags auditFlags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例19: AuditRuleFactory
public abstract AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs
示例20: EventWaitHandleAccessRule
public EventWaitHandleAccessRule(IdentityReference identity, EventWaitHandleRights eventRights, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs
注:本文中的IdentityReference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论