Files
mono/mcs/class/corlib/System.Security.Principal/TokenAccessLevels.cs
T
Sebastien Pouliot b7d13b3892 2005-06-17 Sebastien Pouliot <[email protected]>
* IdentityNotMappedException.cs: New (2.0). Identity exception.
	* IdentityReference.cs: New (2.0). Abstract base class to collect /
	translate identities.
	* IdentityReferenceCollection.cs: New. (2.0) Collection of 
	IdentityReference (e.g. groups).
	* NTAccount.cs: New (2.0). Domain/User (string based) 
	IdentityReference.
	* SecurityIdentifier.cs: New (2.0). SID (binary based) 
	IdentityReference.
	* TokenAccessLevels.cs: New (2.0). Type of identity token.
	* TokenImpersonationLevel.cs: Fixed name in header.
	* WellKnownSidType.cs: New (2.0). Enum of all well known SID.
	* WindowsIdentity.cs: Implement IDisposable for 2.0. Add Identity
	Reference support for User, Owner and a collection for groups.
	* WindowsImpersonationContext.cs: Implement IDisposable for 2.0.
	* WindowsPrincipal.cs: Added IsInRole(SecurityIdentifier) for 2.0.


svn path=/trunk/mcs/; revision=46132
2005-06-17 11:21:28 +00:00

56 lines
1.7 KiB
C#

//
// System.Security.Principal.TokenAccessLevels flags
//
// Author:
// Sebastien Pouliot <[email protected]>
//
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Runtime.InteropServices;
namespace System.Security.Principal {
[Serializable]
[Flags]
[ComVisible (true)]
public enum TokenAccessLevels {
AssignPrimary = 1,
Duplicate = 2,
Impersonate = 4,
Query = 8,
QuerySource = 16,
AdjustPrivileges = 32,
AdjustGroups = 64,
AdjustDefault = 128,
AdjustSessionId = 256,
Read = 0x20008,
Write = 0x200E0,
AllAccess = 0xF01FF,
MaximumAllowed = 0x2000000
}
}
#endif