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
- ScriptResourceAttribute.cs
- Triangle.cs
- XmlReflectionImporter.cs
- CreateUserWizardStep.cs
- ThreadExceptionEvent.cs
- PeerNearMe.cs
- DisplayNameAttribute.cs
- EventProviderBase.cs
- DbCommandTree.cs
- TabPanel.cs
- ItemList.cs
- InitializationEventAttribute.cs
- PngBitmapEncoder.cs
- TabControlEvent.cs
- DateTime.cs
- GroupQuery.cs
- TableCellsCollectionEditor.cs
- SQLGuidStorage.cs
- WebServiceHandlerFactory.cs
- TreeViewAutomationPeer.cs
- Stylesheet.cs
- InternalConfigSettingsFactory.cs
- SecurityRuntime.cs
- BufferedGraphicsManager.cs
- SessionPageStateSection.cs
- WebHostScriptMappingsInstallComponent.cs
- codemethodreferenceexpression.cs
- MediaElementAutomationPeer.cs
- BitmapEffectRenderDataResource.cs
- Iis7Helper.cs
- HasCopySemanticsAttribute.cs
- InfiniteTimeSpanConverter.cs
- CodeNamespaceImport.cs
- CellIdBoolean.cs
- AdornerLayer.cs
- ResourceWriter.cs
- MachinePropertyVariants.cs
- ResolvedKeyFrameEntry.cs
- TailPinnedEventArgs.cs
- RegexMatch.cs
- CalculatedColumn.cs
- ToolboxItemFilterAttribute.cs
- GridEntry.cs
- WinFormsUtils.cs
- SchemaImporter.cs
- AccessorTable.cs
- PropertyMapper.cs
- MaterialGroup.cs
- WebConfigurationManager.cs
- LinkUtilities.cs
- DataColumnSelectionConverter.cs
- ColumnPropertiesGroup.cs
- NameTable.cs
- ToolStripButton.cs
- Trace.cs
- EnvironmentPermission.cs
- TimeZone.cs
- TimeoutValidationAttribute.cs
- HitTestParameters3D.cs
- ContextMenu.cs
- XmlSchemaSimpleType.cs
- DebuggerService.cs
- wmiprovider.cs
- PipelineModuleStepContainer.cs
- DocumentXmlWriter.cs
- Grid.cs
- SignatureGenerator.cs
- CharConverter.cs
- SqlTrackingQuery.cs
- RectangleGeometry.cs
- ServicesSection.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- LogReservationCollection.cs
- TextPenaltyModule.cs
- PageCache.cs
- DrawingServices.cs
- MediaSystem.cs
- ClientCultureInfo.cs
- SettingsBase.cs
- PassportIdentity.cs
- GorillaCodec.cs
- SyncOperationState.cs
- FixedSchema.cs
- TextDecorations.cs
- WorkflowMessageEventHandler.cs
- CodeStatementCollection.cs
- GlobalAllocSafeHandle.cs
- Formatter.cs
- StretchValidation.cs
- Rotation3DAnimationBase.cs
- DesignRelation.cs
- DocumentAutomationPeer.cs
- BitmapEffectInput.cs
- DataGridViewCellLinkedList.cs
- OrderByLifter.cs
- RoleManagerEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- Scripts.cs
- MobileUITypeEditor.cs
- RowParagraph.cs