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
- WindowsRichEditRange.cs
- SqlUtils.cs
- ToolBarOverflowPanel.cs
- Single.cs
- SessionStateUtil.cs
- XhtmlBasicLabelAdapter.cs
- XmlNodeComparer.cs
- GatewayDefinition.cs
- FormCollection.cs
- Attributes.cs
- SystemParameters.cs
- SkinBuilder.cs
- ServicePointManager.cs
- XmlCountingReader.cs
- TextSimpleMarkerProperties.cs
- SocketAddress.cs
- MetadataCacheItem.cs
- WebPartEditorCancelVerb.cs
- ScrollBar.cs
- WebBrowserNavigatedEventHandler.cs
- SQLStringStorage.cs
- RegexMatchCollection.cs
- UpdateManifestForBrowserApplication.cs
- HotSpotCollectionEditor.cs
- PngBitmapDecoder.cs
- HtmlElementCollection.cs
- DataContractSerializerSection.cs
- InOutArgument.cs
- ImplicitInputBrush.cs
- LicenseManager.cs
- ControlBuilder.cs
- NumericPagerField.cs
- SQLChars.cs
- ProxyHelper.cs
- ConsoleCancelEventArgs.cs
- RecipientInfo.cs
- RadioButtonRenderer.cs
- CounterSampleCalculator.cs
- XamlSerializationHelper.cs
- BoolExpression.cs
- TagPrefixAttribute.cs
- XmlTypeAttribute.cs
- CriticalFinalizerObject.cs
- TypeDependencyAttribute.cs
- Itemizer.cs
- ThreadAbortException.cs
- ListItemCollection.cs
- MemberDescriptor.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DropShadowBitmapEffect.cs
- ResolvePPIDRequest.cs
- ServerIdentity.cs
- AudienceUriMode.cs
- MeshGeometry3D.cs
- UserInitiatedNavigationPermission.cs
- ForeignKeyConstraint.cs
- DesignerContextDescriptor.cs
- DbParameterCollection.cs
- DebugTracing.cs
- SystemWebExtensionsSectionGroup.cs
- Symbol.cs
- UICuesEvent.cs
- HotSpotCollection.cs
- LogExtentCollection.cs
- HttpPostedFile.cs
- Base64Decoder.cs
- UnsafeNativeMethods.cs
- NameValueConfigurationElement.cs
- Attributes.cs
- SplitContainerDesigner.cs
- FileSystemEnumerable.cs
- AttributeTableBuilder.cs
- MediaPlayer.cs
- ControlEvent.cs
- OpenTypeLayoutCache.cs
- VarRefManager.cs
- PasswordBox.cs
- Parser.cs
- ScriptingScriptResourceHandlerSection.cs
- XmlTypeMapping.cs
- Models.cs
- AssociationSetMetadata.cs
- MetadataExchangeClient.cs
- LoadGrammarCompletedEventArgs.cs
- ExecutionContext.cs
- TextParentUndoUnit.cs
- SoapExtensionReflector.cs
- PartialCachingControl.cs
- HttpWebResponse.cs
- BooleanFunctions.cs
- TaskFormBase.cs
- ConfigurationLocation.cs
- CapiHashAlgorithm.cs
- UnsafeNetInfoNativeMethods.cs
- Label.cs
- mediaeventargs.cs
- assertwrapper.cs
- BufferBuilder.cs
- SymLanguageType.cs
- RtfToken.cs