public AccessControlEntry(Trustee trustee,
			GenericAccessRights genericAccessRights,
			StandardAccessRights standardAccessRights,
			AccessControlEntryType entryType)
		{
			throw new NotImplementedException();
		}
Пример #2
0
 /// <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;
 }
Пример #3
0
 public AccessControlEntry(Trustee trustee,
                           GenericAccessRights genericAccessRights,
                           StandardAccessRights standardAccessRights,
                           AccessControlEntryType entryType)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 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(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;
		}
Пример #7
0
        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;
        }
Пример #10
0
		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);
		}
Пример #11
0
        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;
 }
 /// <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;
 }
Пример #16
0
 public static bool ValidateAccessControlEntryType(AccessControlEntryType value)
 {
     return((value >= AccessControlEntryType.Allow) && (value <= AccessControlEntryType.Revoke));
 }
Пример #17
0
 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;
 }
Пример #20
0
 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));
 }
Пример #22
0
 public MessageQueueAccessControlEntry(Trustee trustee, System.Messaging.MessageQueueAccessRights rights, AccessControlEntryType entryType) : base(trustee)
 {
     base.CustomAccessRights |= rights;
     base.EntryType           = entryType;
 }
 /// <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()
 {
     this.entryType = AccessControlEntryType.Allow;
 }
Пример #25
0
 public AccessControlEntry(System.Messaging.Trustee trustee)
 {
     this.entryType = AccessControlEntryType.Allow;
     this.Trustee   = trustee;
 }
 public AccessControlEntry(System.Messaging.Trustee trustee)
 {
     this.entryType = AccessControlEntryType.Allow;
     this.Trustee = trustee;
 }
	public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType) {}
Пример #28
0
 public AccessControlEntry()
 {
     this.entryType = AccessControlEntryType.Allow;
 }
Пример #29
0
		public void SetPermissions (string user, MessageQueueAccessRights rights, AccessControlEntryType entryType)
		{
			throw new NotImplementedException ();
		}
Пример #30
0
 public void SetPermissions(string user, MessageQueueAccessRights rights, AccessControlEntryType entryType)
 {
 }
Пример #31
0
 internal void SetPermissions(string administratorsGroupName, MessageQueueAccessRights messageQueueAccessRights, AccessControlEntryType accessControlEntryType)
 {
     throw new System.NotImplementedException();
 }
		public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights, AccessControlEntryType entryType)
		{
		}