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
- FixedSchema.cs
- DataDesignUtil.cs
- DataGridViewColumnCollectionEditor.cs
- SecurityDocument.cs
- ProfilePropertySettings.cs
- SystemMulticastIPAddressInformation.cs
- ScrollViewerAutomationPeer.cs
- XmlAttributeAttribute.cs
- BindingListCollectionView.cs
- ManagementEventArgs.cs
- HttpProfileBase.cs
- DispatcherObject.cs
- TrackBar.cs
- ObjectParameterCollection.cs
- GridItemPattern.cs
- TypeDescriptorFilterService.cs
- Icon.cs
- COM2ICategorizePropertiesHandler.cs
- TreeChangeInfo.cs
- HttpConfigurationContext.cs
- DataObjectSettingDataEventArgs.cs
- DrawingAttributeSerializer.cs
- WindowsListView.cs
- SqlDataSourceView.cs
- TypeConverterValueSerializer.cs
- CodeCastExpression.cs
- ProvidePropertyAttribute.cs
- ReferenceEqualityComparer.cs
- ServerValidateEventArgs.cs
- DbDeleteCommandTree.cs
- Operators.cs
- DictionaryBase.cs
- _IPv4Address.cs
- ComponentConverter.cs
- TypeInitializationException.cs
- EventLogger.cs
- RegexMatchCollection.cs
- DynamicResourceExtensionConverter.cs
- EntityDesignerUtils.cs
- WebPartMenuStyle.cs
- TemplateEditingFrame.cs
- WebScriptMetadataMessage.cs
- SmiEventSink_DeferedProcessing.cs
- SiteMapPath.cs
- Path.cs
- IdentityModelStringsVersion1.cs
- FormatConvertedBitmap.cs
- ThaiBuddhistCalendar.cs
- LingerOption.cs
- CdpEqualityComparer.cs
- NamespaceMapping.cs
- translator.cs
- AffineTransform3D.cs
- TreeViewEvent.cs
- _UncName.cs
- FaultReasonText.cs
- InfiniteTimeSpanConverter.cs
- WebRequestModulesSection.cs
- ToolStripContainerDesigner.cs
- ApplicationProxyInternal.cs
- _SslStream.cs
- DataGridViewImageColumn.cs
- XmlAnyElementAttributes.cs
- StaticFileHandler.cs
- ToolBarButtonDesigner.cs
- SwitchAttribute.cs
- XmlNamedNodeMap.cs
- ComponentCollection.cs
- QuaternionAnimation.cs
- SiteMapDataSource.cs
- PerformanceCounterPermissionEntry.cs
- FaultDescription.cs
- LookupNode.cs
- ellipse.cs
- GPPOINTF.cs
- LineServicesCallbacks.cs
- XPathScanner.cs
- RadioButtonPopupAdapter.cs
- ACL.cs
- ConfigXmlCDataSection.cs
- WebSysDisplayNameAttribute.cs
- XmlSchemaValidator.cs
- SecurityTokenAuthenticator.cs
- UrlEncodedParameterWriter.cs
- ItemList.cs
- HtmlInputText.cs
- DataGridViewCellEventArgs.cs
- ColorConvertedBitmap.cs
- XslCompiledTransform.cs
- HandlerMappingMemo.cs
- Odbc32.cs
- Formatter.cs
- ClientConfigurationSystem.cs
- DataGridViewLayoutData.cs
- AppDomain.cs
- BinaryFormatter.cs
- SqlCacheDependency.cs
- ReadOnlyHierarchicalDataSource.cs
- CopyCodeAction.cs
- EncryptedPackage.cs