Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapInitialize.cs
- StorageAssociationTypeMapping.cs
- WpfSharedBamlSchemaContext.cs
- OrderByExpression.cs
- MouseOverProperty.cs
- lengthconverter.cs
- GenericAuthenticationEventArgs.cs
- ObjectSelectorEditor.cs
- BaseTreeIterator.cs
- Deserializer.cs
- Tablet.cs
- SerializationInfoEnumerator.cs
- TimeoutException.cs
- Timer.cs
- SelectionPatternIdentifiers.cs
- WebBrowser.cs
- PersonalizationAdministration.cs
- DataBoundControlHelper.cs
- IteratorFilter.cs
- InfoCardTraceRecord.cs
- BitmapEffectGeneralTransform.cs
- HttpAsyncResult.cs
- ToolStripDropDownButton.cs
- SafePEFileHandle.cs
- EntityDescriptor.cs
- Dictionary.cs
- SuppressMessageAttribute.cs
- TextMetrics.cs
- TabPanel.cs
- ComponentRenameEvent.cs
- ImageDesigner.cs
- _SpnDictionary.cs
- XslNumber.cs
- BitmapEffectInput.cs
- ProfileSection.cs
- XmlSchemaRedefine.cs
- PresentationTraceSources.cs
- TempEnvironment.cs
- HttpFileCollection.cs
- SimplePropertyEntry.cs
- EmptyEnumerator.cs
- InkCanvasSelection.cs
- XmlChildNodes.cs
- CollectionContainer.cs
- ApplyImportsAction.cs
- TypedElement.cs
- MultipleViewPattern.cs
- Calendar.cs
- DesignerInterfaces.cs
- MediaContext.cs
- BrushValueSerializer.cs
- Rect.cs
- RoutedEventHandlerInfo.cs
- xmlglyphRunInfo.cs
- JoinGraph.cs
- Rotation3D.cs
- SystemColors.cs
- DataPagerField.cs
- XmlSchemaObjectCollection.cs
- PopupEventArgs.cs
- BinaryNode.cs
- SqlReorderer.cs
- RtfToken.cs
- SHA512Managed.cs
- KeyEventArgs.cs
- EndOfStreamException.cs
- RelatedView.cs
- ArrayListCollectionBase.cs
- MenuItemBindingCollection.cs
- ExceptionUtil.cs
- BindingExpressionUncommonField.cs
- StartUpEventArgs.cs
- ThaiBuddhistCalendar.cs
- DataSourceView.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DesignTimeParseData.cs
- DataContractSerializerSection.cs
- EvidenceBase.cs
- UnsafeNativeMethods.cs
- Model3DGroup.cs
- Base64Decoder.cs
- QueryResultOp.cs
- SoapProtocolReflector.cs
- NamespaceMapping.cs
- DesignerTransaction.cs
- Utils.cs
- BuilderPropertyEntry.cs
- CryptoConfig.cs
- TransferRequestHandler.cs
- KeyValuePairs.cs
- DataDesignUtil.cs
- NavigationProperty.cs
- InternalSafeNativeMethods.cs
- TextOnlyOutput.cs
- DataServiceProviderMethods.cs
- DeploymentExceptionMapper.cs
- SystemGatewayIPAddressInformation.cs
- HtmlMeta.cs
- SoapHelper.cs
- ResourceDictionary.cs