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
- OutputCacheSettingsSection.cs
- CodeSnippetTypeMember.cs
- ImageSource.cs
- RoleManagerModule.cs
- PropertyPathWorker.cs
- FileNotFoundException.cs
- PointConverter.cs
- TransactionTable.cs
- RootBuilder.cs
- ErrorTableItemStyle.cs
- MultipartContentParser.cs
- AccessDataSourceView.cs
- NativeRecognizer.cs
- PageClientProxyGenerator.cs
- CacheSection.cs
- SourceInterpreter.cs
- Win32Native.cs
- ListViewCancelEventArgs.cs
- NativeCppClassAttribute.cs
- ImpersonationContext.cs
- WebPartActionVerb.cs
- AbstractSvcMapFileLoader.cs
- MasterPage.cs
- BuilderPropertyEntry.cs
- Span.cs
- LinqDataSourceValidationException.cs
- BaseParaClient.cs
- ActivityPreviewDesigner.cs
- ListBoxChrome.cs
- PageAction.cs
- SQLBytes.cs
- LookupBindingPropertiesAttribute.cs
- MaskedTextBoxDesignerActionList.cs
- PageContent.cs
- BasePropertyDescriptor.cs
- DataTemplateKey.cs
- ClientReliableChannelBinder.cs
- SafeRightsManagementQueryHandle.cs
- XmlReturnReader.cs
- VariableQuery.cs
- ValuePatternIdentifiers.cs
- BufferedGraphicsContext.cs
- TextTreeUndoUnit.cs
- ServiceMemoryGates.cs
- PathSegment.cs
- SafeTokenHandle.cs
- WinEventWrap.cs
- RegisteredArrayDeclaration.cs
- UserValidatedEventArgs.cs
- EntityClientCacheKey.cs
- CachedPathData.cs
- TrackBar.cs
- VariableQuery.cs
- GridViewSortEventArgs.cs
- XmlExpressionDumper.cs
- SecureEnvironment.cs
- DataViewManagerListItemTypeDescriptor.cs
- columnmapkeybuilder.cs
- ItemDragEvent.cs
- MultiView.cs
- QueryNode.cs
- TableHeaderCell.cs
- UrlMappingsSection.cs
- WinEventHandler.cs
- BamlReader.cs
- ActiveDocumentEvent.cs
- NumericExpr.cs
- SafeNativeMethods.cs
- WizardPanelChangingEventArgs.cs
- AllMembershipCondition.cs
- StyleXamlParser.cs
- SchemaTableColumn.cs
- _Semaphore.cs
- OneOfConst.cs
- TagMapInfo.cs
- DiscoveryProxy.cs
- ClientScriptManagerWrapper.cs
- StandardOleMarshalObject.cs
- HttpProcessUtility.cs
- UIElementPropertyUndoUnit.cs
- FtpWebResponse.cs
- ForwardPositionQuery.cs
- MethodImplAttribute.cs
- UnsafeNativeMethods.cs
- PropertyTabAttribute.cs
- AppDomainProtocolHandler.cs
- SafeMemoryMappedFileHandle.cs
- SoundPlayer.cs
- OlePropertyStructs.cs
- CollaborationHelperFunctions.cs
- EventData.cs
- documentsequencetextpointer.cs
- WebPartDeleteVerb.cs
- StreamInfo.cs
- OdbcUtils.cs
- GridViewPageEventArgs.cs
- WorkflowDefinitionContext.cs
- WorkerRequest.cs
- ExitEventArgs.cs
- TextEditorContextMenu.cs