Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- IntSecurity.cs
- SqlSelectStatement.cs
- FileRecordSequence.cs
- PanelDesigner.cs
- HttpServerVarsCollection.cs
- FontSizeConverter.cs
- XomlDesignerLoader.cs
- ColorTransform.cs
- MaskedTextBox.cs
- BaseParser.cs
- DeviceSpecificDialogCachedState.cs
- ApplicationManager.cs
- CollaborationHelperFunctions.cs
- ColumnWidthChangedEvent.cs
- EpmSourcePathSegment.cs
- Clause.cs
- Path.cs
- StreamReader.cs
- RotateTransform.cs
- AssemblyHash.cs
- SqlGatherConsumedAliases.cs
- DefaultObjectMappingItemCollection.cs
- UInt16Storage.cs
- ConnectionManagementElement.cs
- MsmqIntegrationSecurity.cs
- PersonalizationProviderCollection.cs
- GeometryModel3D.cs
- PropertyPushdownHelper.cs
- BodyGlyph.cs
- ResourceAssociationType.cs
- cookiecontainer.cs
- ZipFileInfoCollection.cs
- TaskFormBase.cs
- WorkflowElementDialogWindow.xaml.cs
- TextParagraph.cs
- FullTextState.cs
- RoleManagerSection.cs
- WebConfigurationHostFileChange.cs
- DelimitedListTraceListener.cs
- Properties.cs
- StackOverflowException.cs
- StructuralComparisons.cs
- __ComObject.cs
- DoubleIndependentAnimationStorage.cs
- Table.cs
- SqlExpander.cs
- PackWebRequestFactory.cs
- DBSqlParserTableCollection.cs
- DBConcurrencyException.cs
- Listbox.cs
- ListItemCollection.cs
- TraceSection.cs
- PackageRelationship.cs
- ToolboxDataAttribute.cs
- ColumnHeaderConverter.cs
- SqlDataSource.cs
- WebPartHeaderCloseVerb.cs
- UnorderedHashRepartitionStream.cs
- SmiContextFactory.cs
- DATA_BLOB.cs
- StandardBindingImporter.cs
- BaseUriHelper.cs
- DllNotFoundException.cs
- ProfileInfo.cs
- TableChangeProcessor.cs
- SaveFileDialog.cs
- StylusButton.cs
- Matrix3D.cs
- Win32SafeHandles.cs
- MappingMetadataHelper.cs
- ProfilePropertyMetadata.cs
- WebBrowsableAttribute.cs
- PauseStoryboard.cs
- Context.cs
- ConfigXmlCDataSection.cs
- EntityStoreSchemaFilterEntry.cs
- __Filters.cs
- InsufficientMemoryException.cs
- ValidatingCollection.cs
- ProfileGroupSettings.cs
- InvalidCommandTreeException.cs
- DeferredReference.cs
- TemplateBindingExpression.cs
- ContainsSearchOperator.cs
- Overlapped.cs
- ResourceSetExpression.cs
- SegmentInfo.cs
- ChameleonKey.cs
- PropertyValueUIItem.cs
- RequiredAttributeAttribute.cs
- Application.cs
- ProgressBarRenderer.cs
- ApplicationCommands.cs
- TextEditorContextMenu.cs
- ContentPlaceHolder.cs
- XmlReaderDelegator.cs
- Transform3DGroup.cs
- PageVisual.cs
- PatternMatcher.cs
- ConfigXmlCDataSection.cs