Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1 / 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] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed 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) { _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridColumnHeaderCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- DynamicField.cs
- FontFamily.cs
- XmlComment.cs
- ServiceEndpointElementCollection.cs
- XmlHierarchicalDataSourceView.cs
- ProcessThreadCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- __Filters.cs
- RegistrationServices.cs
- XslException.cs
- RootProfilePropertySettingsCollection.cs
- DbConnectionPoolOptions.cs
- BindingParameterCollection.cs
- DateTimeValueSerializerContext.cs
- DataGridRow.cs
- DPTypeDescriptorContext.cs
- RegularExpressionValidator.cs
- DBSqlParser.cs
- _FtpControlStream.cs
- MonitorWrapper.cs
- EntityDataSourceMemberPath.cs
- PropertyToken.cs
- MissingSatelliteAssemblyException.cs
- UrlMappingCollection.cs
- Options.cs
- BasicBrowserDialog.cs
- PostBackOptions.cs
- HorizontalAlignConverter.cs
- SecurityRuntime.cs
- ByteArrayHelperWithString.cs
- SignatureHelper.cs
- SystemSounds.cs
- KnownBoxes.cs
- PlacementWorkspace.cs
- TextEditorMouse.cs
- ExpressionParser.cs
- XmlNodeWriter.cs
- ParallelTimeline.cs
- BitArray.cs
- PenLineCapValidation.cs
- ListCollectionView.cs
- StringArrayConverter.cs
- DeferredTextReference.cs
- JpegBitmapDecoder.cs
- Geometry3D.cs
- WindowsPen.cs
- FrameworkName.cs
- TransformedBitmap.cs
- TextSelectionHighlightLayer.cs
- CornerRadiusConverter.cs
- NavigationFailedEventArgs.cs
- RestClientProxyHandler.cs
- RequiredFieldValidator.cs
- CqlLexerHelpers.cs
- BulletedListEventArgs.cs
- RoleService.cs
- CacheHelper.cs
- NavigatorInput.cs
- TableLayoutSettings.cs
- FtpCachePolicyElement.cs
- TemplateXamlTreeBuilder.cs
- FloaterParagraph.cs
- ObjectNavigationPropertyMapping.cs
- _NtlmClient.cs
- ReadContentAsBinaryHelper.cs
- ServiceEndpointElementCollection.cs
- HebrewCalendar.cs
- LocatorGroup.cs
- _UriTypeConverter.cs
- Timer.cs
- OrthographicCamera.cs
- ProjectionPathSegment.cs
- HtmlTableCell.cs
- WasAdminWrapper.cs
- ConfigXmlElement.cs
- RemotingConfiguration.cs
- Win32.cs
- RegistryPermission.cs
- PageCache.cs
- Transactions.cs
- SystemFonts.cs
- ColumnTypeConverter.cs
- DataSourceNameHandler.cs
- IdentityHolder.cs
- NavigationHelper.cs
- MinimizableAttributeTypeConverter.cs
- ClickablePoint.cs
- KeyValueConfigurationCollection.cs
- SchemaCollectionCompiler.cs
- PackWebRequest.cs
- AlignmentXValidation.cs
- AsymmetricSecurityProtocol.cs
- TemplateBindingExpressionConverter.cs
- XmlEncoding.cs
- IResourceProvider.cs
- PrintDocument.cs
- ItemsChangedEventArgs.cs
- TextProperties.cs