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
- SiteMapHierarchicalDataSourceView.cs
- OrderablePartitioner.cs
- FontStretchConverter.cs
- DrawingAttributes.cs
- DebugView.cs
- FixedDocument.cs
- WindowsSecurityTokenAuthenticator.cs
- DataViewManagerListItemTypeDescriptor.cs
- ReaderWriterLockWrapper.cs
- ItemsPanelTemplate.cs
- AutomationProperty.cs
- AsyncDataRequest.cs
- SafeCryptContextHandle.cs
- XmlCollation.cs
- ConfigXmlElement.cs
- GAC.cs
- DockPanel.cs
- CodeDirectionExpression.cs
- ConfigurationManager.cs
- KeySpline.cs
- DependencyPropertyConverter.cs
- RewritingProcessor.cs
- CacheVirtualItemsEvent.cs
- SecurityHelper.cs
- RowToFieldTransformer.cs
- Odbc32.cs
- ToolStripContainer.cs
- ReachVisualSerializer.cs
- WebPartDisplayMode.cs
- ServiceHttpModule.cs
- OleDbConnectionFactory.cs
- DataGridViewButtonCell.cs
- DataGridColumnHeadersPresenter.cs
- XDeferredAxisSource.cs
- MachineKeySection.cs
- ToolStripItemCollection.cs
- MailSettingsSection.cs
- GroupBoxRenderer.cs
- SchemaType.cs
- InternalPermissions.cs
- StopStoryboard.cs
- DateTimeConverter.cs
- DecoderNLS.cs
- SkipQueryOptionExpression.cs
- CodeDelegateCreateExpression.cs
- MetadataCache.cs
- TrackingStringDictionary.cs
- OleDbMetaDataFactory.cs
- TimeIntervalCollection.cs
- ServicePointManagerElement.cs
- CompressEmulationStream.cs
- WindowsListViewGroupHelper.cs
- NumberSubstitution.cs
- EventSinkHelperWriter.cs
- TimeSpanMinutesConverter.cs
- BindingOperations.cs
- WebPartConnectionsCancelVerb.cs
- RequiredFieldValidator.cs
- StylusPointProperties.cs
- InvalidDocumentContentsException.cs
- CodeTypeDeclarationCollection.cs
- FlowDocumentView.cs
- XamlPathDataSerializer.cs
- EntityCommandExecutionException.cs
- CanonicalizationDriver.cs
- Subset.cs
- DotAtomReader.cs
- WebPartHeaderCloseVerb.cs
- MenuItemStyleCollection.cs
- BinarySerializer.cs
- MultiSelectRootGridEntry.cs
- GenericIdentity.cs
- EventSinkHelperWriter.cs
- NonSerializedAttribute.cs
- storepermissionattribute.cs
- StrongNameIdentityPermission.cs
- AuthenticationModuleElementCollection.cs
- ContextMenuStripActionList.cs
- DateTimeUtil.cs
- PolyQuadraticBezierSegment.cs
- WebPartZoneBase.cs
- ThicknessConverter.cs
- ConfigurationSettings.cs
- RepeatButtonAutomationPeer.cs
- PageAsyncTask.cs
- DataTableNewRowEvent.cs
- CodeLabeledStatement.cs
- DependencyPropertyAttribute.cs
- RepeatBehaviorConverter.cs
- ValidationResult.cs
- WindowsSpinner.cs
- ObjectComplexPropertyMapping.cs
- DataColumnMappingCollection.cs
- KeyedCollection.cs
- Cursors.cs
- DetailsViewDeleteEventArgs.cs
- OdbcConnectionOpen.cs
- DelegatingConfigHost.cs
- DiffuseMaterial.cs
- Int32Converter.cs