public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) { throw new NotImplementedException(); }
/// <include file='doc\AccessControlEntry.uex' path='docs/doc[@for="AccessControlEntry.AccessControlEntry2"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) { this.GenericAccessRights = genericAccessRights; this.StandardAccessRights = standardAccessRights; this.Trustee = trustee; this.EntryType = entryType; }
public AccessControlEntry(System.Messaging.Trustee trustee, System.Messaging.GenericAccessRights genericAccessRights, System.Messaging.StandardAccessRights standardAccessRights, AccessControlEntryType entryType) { this.entryType = AccessControlEntryType.Allow; this.GenericAccessRights = genericAccessRights; this.StandardAccessRights = standardAccessRights; this.Trustee = trustee; this.EntryType = entryType; }
public AccessControlEntry(SecurityIdentifier trustee, AccessControlEntryType aceType, AccessMask accessMask) { // parameters validation if (trustee == null) throw new ArgumentNullException("trustee"); _aceType = aceType; _aceFlags = AccessControlEntryFlags.Normal; _accessMask = accessMask; Trustee = trustee; }
static void SetPermissionsForQueue(MessageQueue queue, string account) { AccessControlEntryType allow = AccessControlEntryType.Allow; queue.SetPermissions(AdminGroup, MessageQueueAccessRights.FullControl, allow); queue.SetPermissions(EveryoneGroup, MessageQueueAccessRights.WriteMessage, allow); queue.SetPermissions(AnonymousLogon, MessageQueueAccessRights.WriteMessage, allow); queue.SetPermissions(account, MessageQueueAccessRights.WriteMessage, allow); queue.SetPermissions(account, MessageQueueAccessRights.ReceiveMessage, allow); queue.SetPermissions(account, MessageQueueAccessRights.PeekMessage, allow); }
public void GetPermissions_returns_queue_access_rights(AccessControlEntryType providedAccessType) { queue.SetPermissions(LocalEveryoneGroupName, MessageQueueAccessRights.WriteMessage | MessageQueueAccessRights.ReceiveMessage, providedAccessType); if (!queue.TryGetPermissions(LocalEveryoneGroupName, out var rights, out var accessType)) { Assert.Fail($"Unable to read permissions for queue: {queue.QueueName}"); } Assert.IsTrue(rights.HasValue); Assert.True(rights.Value.HasFlag(MessageQueueAccessRights.WriteMessage)); Assert.True(rights.Value.HasFlag(MessageQueueAccessRights.ReceiveMessage)); Assert.That(accessType == providedAccessType); }
public AccessControlEntry(SecurityIdentifier trustee, AccessControlEntryType aceType, AccessMask accessMask) { // parameters validation if (trustee == null) { throw new ArgumentNullException("trustee"); } _aceType = aceType; _aceFlags = AccessControlEntryFlags.Normal; _accessMask = accessMask; Trustee = trustee; }
internal AccessControlEntry(IntPtr pAce) { // parameters validation if (pAce == IntPtr.Zero) throw new ArgumentNullException("pAce"); // read ACE properties _aceType = (AccessControlEntryType)MarshalHelper.ReadByte(pAce, typeof(SecurityNative.ACE), "AceType"); _aceFlags = (AccessControlEntryFlags)MarshalHelper.ReadByte(pAce, typeof(SecurityNative.ACE), "AceFlags"); _accessMask = (AccessMask)MarshalHelper.ReadInt32(pAce, typeof(SecurityNative.ACE), "AccessMask"); // read SID IntPtr pSid = IntPtrHelper.Add(pAce, Marshal.OffsetOf(typeof(SecurityNative.ACE), "SidStart")); Trustee = new SecurityIdentifier(pSid, true); }
internal AccessControlEntry(IntPtr pAce) { // parameters validation if (pAce == IntPtr.Zero) { throw new ArgumentNullException("pAce"); } // read ACE properties _aceType = (AccessControlEntryType)MarshalHelper.ReadByte(pAce, typeof(SecurityNative.ACE), "AceType"); _aceFlags = (AccessControlEntryFlags)MarshalHelper.ReadByte(pAce, typeof(SecurityNative.ACE), "AceFlags"); _accessMask = (AccessMask)MarshalHelper.ReadInt32(pAce, typeof(SecurityNative.ACE), "AccessMask"); // read SID IntPtr pSid = IntPtrHelper.Add(pAce, Marshal.OffsetOf(typeof(SecurityNative.ACE), "SidStart")); Trustee = new SecurityIdentifier(pSid, true); }
public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights, AccessControlEntryType entryType) { }
public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) {}
/// <include file='doc\MessageQueueAccessControlEntry.uex' path='docs/doc[@for="MessageQueueAccessControlEntry.MessageQueueAccessControlEntry1"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights, AccessControlEntryType entryType) : base(trustee) { CustomAccessRights |= (int)rights; EntryType = entryType; }
public static bool ValidateAccessControlEntryType(AccessControlEntryType value) { return((value >= AccessControlEntryType.Allow) && (value <= AccessControlEntryType.Revoke)); }
public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) { throw new NotImplementedException(); }
public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) { }
public MessageQueueAccessControlEntry(Trustee trustee, System.Messaging.MessageQueueAccessRights rights, AccessControlEntryType entryType) : base(trustee) { base.CustomAccessRights |= rights; base.EntryType = entryType; }
public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) { CheckDisposed(); _wrapped.SetPermissions(user, rights, entryType); }
public static bool ValidateAccessControlEntryType(AccessControlEntryType value) { return ((value >= AccessControlEntryType.Allow) && (value <= AccessControlEntryType.Revoke)); }
public AccessControlEntry() { this.entryType = AccessControlEntryType.Allow; }
public AccessControlEntry(System.Messaging.Trustee trustee) { this.entryType = AccessControlEntryType.Allow; this.Trustee = trustee; }
public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) {}
public void SetPermissions (string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) { throw new NotImplementedException (); }
public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) { }
internal void SetPermissions(string administratorsGroupName, MessageQueueAccessRights messageQueueAccessRights, AccessControlEntryType accessControlEntryType) { throw new System.NotImplementedException(); }