Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CollectionDataContractAttribute.cs
- CustomMenuItemCollection.cs
- ApplicationId.cs
- ExpandoClass.cs
- securitycriticaldataformultiplegetandset.cs
- SingleStorage.cs
- BehaviorEditorPart.cs
- ObjectPropertyMapping.cs
- DPAPIProtectedConfigurationProvider.cs
- EventDescriptor.cs
- OletxEnlistment.cs
- PathFigure.cs
- XamlTreeBuilderBamlRecordWriter.cs
- StopRoutingHandler.cs
- CharacterBuffer.cs
- CollectionExtensions.cs
- MachineKeyConverter.cs
- TransformerTypeCollection.cs
- ReadOnlyDataSource.cs
- KeyGestureValueSerializer.cs
- DesignerHost.cs
- ResourceBinder.cs
- Int32Collection.cs
- SizeFConverter.cs
- UserControlBuildProvider.cs
- DistributedTransactionPermission.cs
- _Events.cs
- SignatureConfirmations.cs
- VectorAnimationBase.cs
- ReflectPropertyDescriptor.cs
- serverconfig.cs
- UnsafeNativeMethods.cs
- StreamReader.cs
- TypeDescriptor.cs
- BitmapCodecInfoInternal.cs
- MD5Cng.cs
- ToolStripSeparatorRenderEventArgs.cs
- WebBrowserHelper.cs
- XsdCachingReader.cs
- XPathNodeIterator.cs
- UIElementParaClient.cs
- VirtualPathUtility.cs
- TargetControlTypeCache.cs
- MemberListBinding.cs
- Rectangle.cs
- _TLSstream.cs
- TextBox.cs
- GenericEnumerator.cs
- CodeThrowExceptionStatement.cs
- ErrorReporting.cs
- Configuration.cs
- CodeMemberProperty.cs
- UnsafeNativeMethodsPenimc.cs
- MenuItemBinding.cs
- XmlSchemaSubstitutionGroup.cs
- PersonalizationStateQuery.cs
- SignatureToken.cs
- ItemType.cs
- AccessViolationException.cs
- NavigatingCancelEventArgs.cs
- RegexReplacement.cs
- IgnoreFileBuildProvider.cs
- RadioButton.cs
- control.ime.cs
- _NetworkingPerfCounters.cs
- EntitySqlException.cs
- IndependentAnimationStorage.cs
- MultipartContentParser.cs
- SchemaAttDef.cs
- ListViewGroupItemCollection.cs
- InitializationEventAttribute.cs
- SoapTypeAttribute.cs
- MexHttpBindingElement.cs
- ObjectHandle.cs
- ZipIOModeEnforcingStream.cs
- AdapterUtil.cs
- Delegate.cs
- CodeEventReferenceExpression.cs
- control.ime.cs
- XamlSerializer.cs
- ContractInstanceProvider.cs
- ValidationHelpers.cs
- CallSiteBinder.cs
- XmlTextWriter.cs
- ExpressionBuilder.cs
- ToolStripTextBox.cs
- StrokeNodeData.cs
- ParamArrayAttribute.cs
- QueryStatement.cs
- SubstitutionList.cs
- ContextDataSourceView.cs
- SharedPersonalizationStateInfo.cs
- NavigatingCancelEventArgs.cs
- ConfigurationManagerInternalFactory.cs
- TransactionFlowProperty.cs
- nulltextnavigator.cs
- OutputChannelBinder.cs
- ServiceModelEnumValidatorAttribute.cs
- PageParserFilter.cs
- Color.cs