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
- SqlExpressionNullability.cs
- SessionStateModule.cs
- SystemIPGlobalProperties.cs
- SessionStateContainer.cs
- OletxEnlistment.cs
- SecUtil.cs
- WaitHandleCannotBeOpenedException.cs
- ReplyChannelBinder.cs
- SafeNativeMethodsOther.cs
- DataGridLinkButton.cs
- xmlfixedPageInfo.cs
- Exception.cs
- serverconfig.cs
- VectorCollection.cs
- StdValidatorsAndConverters.cs
- FontFaceLayoutInfo.cs
- KeyNotFoundException.cs
- Label.cs
- UiaCoreTypesApi.cs
- CompilationPass2Task.cs
- ParameterCollection.cs
- SymLanguageType.cs
- SystemTcpStatistics.cs
- HierarchicalDataBoundControl.cs
- MobileControlsSectionHelper.cs
- NotifyIcon.cs
- DayRenderEvent.cs
- PathGeometry.cs
- Package.cs
- SQLMembershipProvider.cs
- CodeObjectCreateExpression.cs
- ClientRuntime.cs
- BitVector32.cs
- ExpressionContext.cs
- LabelAutomationPeer.cs
- PropagatorResult.cs
- DBSqlParserTable.cs
- LowerCaseStringConverter.cs
- DiscreteKeyFrames.cs
- _ListenerRequestStream.cs
- SqlDependency.cs
- WorkflowOwnershipException.cs
- XsdCachingReader.cs
- WebPartsPersonalization.cs
- FacetChecker.cs
- ResolveNameEventArgs.cs
- ApplicationBuildProvider.cs
- Query.cs
- ColorMatrix.cs
- SafeFileMappingHandle.cs
- PropertyFilterAttribute.cs
- ValidatorUtils.cs
- DataGridCell.cs
- SizeAnimation.cs
- SqlCommandBuilder.cs
- EntityTypeEmitter.cs
- LicenseException.cs
- Metadata.cs
- GlyphingCache.cs
- DataListItemEventArgs.cs
- MenuItem.cs
- Fx.cs
- NamespaceCollection.cs
- MD5CryptoServiceProvider.cs
- Bold.cs
- InterleavedZipPartStream.cs
- BitmapEncoder.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- MessagePropertyVariants.cs
- Int32KeyFrameCollection.cs
- EventItfInfo.cs
- SocketElement.cs
- XamlStackWriter.cs
- EastAsianLunisolarCalendar.cs
- RecognizedAudio.cs
- CodeSnippetStatement.cs
- Debug.cs
- Transform.cs
- QueryableFilterUserControl.cs
- NotConverter.cs
- __ComObject.cs
- TableParaClient.cs
- DesignTimeDataBinding.cs
- SHA1.cs
- CustomAssemblyResolver.cs
- FixedSOMFixedBlock.cs
- CannotUnloadAppDomainException.cs
- StrokeNodeData.cs
- ListBox.cs
- PathSegment.cs
- UpdatePanel.cs
- DelegatingConfigHost.cs
- ImageListUtils.cs
- FloaterParaClient.cs
- SingleObjectCollection.cs
- PopupRoot.cs
- BlockUIContainer.cs
- WrapPanel.cs
- Overlapped.cs
- GroupItemAutomationPeer.cs