Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } // 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
- HttpContext.cs
- ColumnPropertiesGroup.cs
- JournalEntry.cs
- EntityChangedParams.cs
- StorageMappingItemLoader.cs
- documentsequencetextcontainer.cs
- AutomationProperties.cs
- DataPagerFieldItem.cs
- GridViewCancelEditEventArgs.cs
- RewritingSimplifier.cs
- WebBrowserContainer.cs
- ApplicationActivator.cs
- SingleAnimation.cs
- FrameDimension.cs
- IdentityValidationException.cs
- ScriptingWebServicesSectionGroup.cs
- Int64Converter.cs
- TabItemWrapperAutomationPeer.cs
- HealthMonitoringSectionHelper.cs
- ScaleTransform3D.cs
- GetMemberBinder.cs
- PropertyPathWorker.cs
- InstancePersistenceException.cs
- ExpandSegmentCollection.cs
- HMACSHA384.cs
- MenuStrip.cs
- complextypematerializer.cs
- Stylesheet.cs
- FontNamesConverter.cs
- XmlReaderSettings.cs
- DataBinding.cs
- RadioButton.cs
- DefaultTraceListener.cs
- Knowncolors.cs
- AssemblyBuilder.cs
- DataSourceXmlSerializer.cs
- FocusManager.cs
- AssertSection.cs
- InstanceNameConverter.cs
- parserscommon.cs
- OdbcStatementHandle.cs
- DoubleIndependentAnimationStorage.cs
- ResXResourceReader.cs
- Assembly.cs
- SpeechEvent.cs
- Matrix.cs
- PageEventArgs.cs
- ButtonChrome.cs
- TabControlCancelEvent.cs
- GridViewColumn.cs
- DeviceSpecificDialogCachedState.cs
- WindowsGraphics2.cs
- HttpHandlersInstallComponent.cs
- TextTrailingCharacterEllipsis.cs
- DesignBindingConverter.cs
- TrustLevel.cs
- FullTrustAssembly.cs
- SimpleNameService.cs
- DataTableTypeConverter.cs
- HitTestDrawingContextWalker.cs
- ToolStripSplitStackLayout.cs
- AnnotationService.cs
- SelectionItemProviderWrapper.cs
- HtmlDocument.cs
- DashStyles.cs
- XmlSchemaExporter.cs
- PreviewPageInfo.cs
- ScrollBarAutomationPeer.cs
- BinaryObjectReader.cs
- LambdaCompiler.Logical.cs
- XmlSchemaImport.cs
- SessionSwitchEventArgs.cs
- GAC.cs
- ConfigurationElementCollection.cs
- SqlBuilder.cs
- OuterGlowBitmapEffect.cs
- BamlResourceDeserializer.cs
- EntityModelSchemaGenerator.cs
- MsmqInputChannelListenerBase.cs
- _DigestClient.cs
- UnsafeNativeMethods.cs
- ConfigXmlComment.cs
- RegexReplacement.cs
- ConfigurationCollectionAttribute.cs
- IndentedWriter.cs
- EditingCoordinator.cs
- _BaseOverlappedAsyncResult.cs
- DataGridViewLayoutData.cs
- BinaryObjectReader.cs
- TemplateComponentConnector.cs
- PagerSettings.cs
- QueuePathDialog.cs
- Message.cs
- ListViewSelectEventArgs.cs
- NativeWindow.cs
- ApplicationFileCodeDomTreeGenerator.cs
- NotifyCollectionChangedEventArgs.cs
- ConfigurationElement.cs
- DbReferenceCollection.cs
- SafeHandle.cs