Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1305376 / FormsIdentity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsIdentity * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// This class is an IIdentity derived class /// used by FormsAuthenticationModule. It provides a way for an application to /// access the cookie authentication ticket. /// [Serializable] public class FormsIdentity : IIdentity { ////// The name of the identity (in this case, the /// passport user name). /// public String Name { get { return _Ticket.Name;}} ////// The type of the identity (in this case, /// "Forms"). /// public String AuthenticationType { get { return "Forms";}} ////// Indicates whether or not authentication took /// place. /// public bool IsAuthenticated { get { return true;}} ////// Returns the FormsAuthenticationTicket /// associated with the current request. /// public FormsAuthenticationTicket Ticket { get { return _Ticket;}} ////// Constructor. /// public FormsIdentity (FormsAuthenticationTicket ticket) { if (ticket == null) throw new ArgumentNullException("ticket"); _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExceptQueryOperator.cs
- BatchServiceHost.cs
- WmlLabelAdapter.cs
- CatalogPart.cs
- CellCreator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SpotLight.cs
- Missing.cs
- PagesChangedEventArgs.cs
- HwndHost.cs
- ILGenerator.cs
- UnsafeNativeMethods.cs
- Subset.cs
- Menu.cs
- DataGridSortingEventArgs.cs
- Win32NamedPipes.cs
- DefaultClaimSet.cs
- UInt64Storage.cs
- QuaternionAnimation.cs
- ColumnCollection.cs
- OleDbEnumerator.cs
- RoutedPropertyChangedEventArgs.cs
- InternalControlCollection.cs
- WindowHideOrCloseTracker.cs
- HttpBufferlessInputStream.cs
- OdbcConnectionStringbuilder.cs
- CharStorage.cs
- ContractNamespaceAttribute.cs
- UInt16.cs
- CompiledELinqQueryState.cs
- UserInitiatedNavigationPermission.cs
- XmlCodeExporter.cs
- SoapServerProtocol.cs
- Rect.cs
- EditorPart.cs
- CharEntityEncoderFallback.cs
- HotSpot.cs
- MimeAnyImporter.cs
- NetworkInterface.cs
- UrlMappingsModule.cs
- PageBuildProvider.cs
- Renderer.cs
- GuidelineSet.cs
- UIElementCollection.cs
- ListViewCancelEventArgs.cs
- FixedFlowMap.cs
- XPathArrayIterator.cs
- DetailsViewModeEventArgs.cs
- TypeSystemHelpers.cs
- TreeWalkHelper.cs
- CodeTypeConstructor.cs
- DescendantQuery.cs
- FieldAccessException.cs
- ModuleElement.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlDataReader.cs
- RegularExpressionValidator.cs
- SqlCachedBuffer.cs
- MarkupWriter.cs
- ParameterBuilder.cs
- TypeSystem.cs
- Compiler.cs
- HttpWebResponse.cs
- HttpServerUtilityWrapper.cs
- PlanCompilerUtil.cs
- ListBindableAttribute.cs
- Dispatcher.cs
- OleDbConnectionInternal.cs
- FixedHyperLink.cs
- Cloud.cs
- SqlCacheDependencyDatabase.cs
- FixedLineResult.cs
- Registry.cs
- Model3D.cs
- ImageListStreamer.cs
- FixedBufferAttribute.cs
- FtpRequestCacheValidator.cs
- ListBindingConverter.cs
- ScrollableControl.cs
- MouseButton.cs
- WebPartTransformer.cs
- InstanceCreationEditor.cs
- RenderDataDrawingContext.cs
- SHA512.cs
- JulianCalendar.cs
- TextBoxAutoCompleteSourceConverter.cs
- HttpResponseWrapper.cs
- WaitHandle.cs
- BoundingRectTracker.cs
- BasicDesignerLoader.cs
- Math.cs
- BaseParagraph.cs
- ConsumerConnectionPoint.cs
- OptimalBreakSession.cs
- DataGridViewButtonColumn.cs
- TimelineGroup.cs
- PixelFormat.cs
- GenericTypeParameterBuilder.cs
- Size3D.cs
- PermissionToken.cs