Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IsolatedStorageFileStream.cs
- CodeAttributeArgument.cs
- HttpPostProtocolImporter.cs
- Dispatcher.cs
- __Filters.cs
- CngAlgorithm.cs
- TextRangeBase.cs
- BitmapEffectInput.cs
- DesignerRegion.cs
- ManagementPath.cs
- ObjectAnimationBase.cs
- ScriptComponentDescriptor.cs
- KeyConstraint.cs
- ToolStripItemTextRenderEventArgs.cs
- HtmlInputReset.cs
- ModulesEntry.cs
- DocumentPropertiesDialog.cs
- CollectionViewGroup.cs
- FocusManager.cs
- updatecommandorderer.cs
- CompilerScope.Storage.cs
- SystemResourceKey.cs
- HttpCapabilitiesSectionHandler.cs
- PassportAuthentication.cs
- ValueExpressions.cs
- HttpRequest.cs
- AnnotationComponentChooser.cs
- ResourceDefaultValueAttribute.cs
- PageWrapper.cs
- PersonalizationStateInfo.cs
- ActiveXSite.cs
- ClonableStack.cs
- hresults.cs
- Visual3D.cs
- CaseExpr.cs
- RequestQueue.cs
- COM2FontConverter.cs
- NativeMethodsCLR.cs
- WorkflowServiceBuildProvider.cs
- SHA256.cs
- WindowProviderWrapper.cs
- CombinedHttpChannel.cs
- HwndTarget.cs
- GridViewRowEventArgs.cs
- SpStreamWrapper.cs
- StructuredType.cs
- TextServicesCompartment.cs
- App.cs
- HttpApplicationStateBase.cs
- MissingFieldException.cs
- CorrelationManager.cs
- Lasso.cs
- PersonalizationDictionary.cs
- EmbossBitmapEffect.cs
- XslTransformFileEditor.cs
- SoapAttributeOverrides.cs
- EmptyWorkItem.cs
- DataGridViewRowCancelEventArgs.cs
- TextCompositionManager.cs
- TargetConverter.cs
- HostDesigntimeLicenseContext.cs
- ToolZone.cs
- ToolStripAdornerWindowService.cs
- Light.cs
- Rect.cs
- RunClient.cs
- PeerNameRegistration.cs
- DelayedRegex.cs
- ISCIIEncoding.cs
- RepeatBehavior.cs
- WsdlImporterElement.cs
- Margins.cs
- _WinHttpWebProxyDataBuilder.cs
- QilGeneratorEnv.cs
- CompositeControl.cs
- DeliveryStrategy.cs
- ProviderConnectionPointCollection.cs
- SqlLiftIndependentRowExpressions.cs
- BrowsableAttribute.cs
- VisualStyleRenderer.cs
- DeferredReference.cs
- ExpressionLexer.cs
- TextRangeBase.cs
- TypedReference.cs
- FacetChecker.cs
- CodeMemberField.cs
- AuthorizationRule.cs
- CssClassPropertyAttribute.cs
- Win32.cs
- TextBoxAutoCompleteSourceConverter.cs
- IdentityModelDictionary.cs
- ZoneButton.cs
- GridItemPattern.cs
- Style.cs
- XmlNotation.cs
- DataGridCellInfo.cs
- KnownAssembliesSet.cs
- HtmlForm.cs
- PartitionResolver.cs
- SHA384Cng.cs