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
- NameValueFileSectionHandler.cs
- SqlFacetAttribute.cs
- CoTaskMemHandle.cs
- DataGridItemEventArgs.cs
- DynamicObjectAccessor.cs
- InvalidFilterCriteriaException.cs
- TriggerActionCollection.cs
- PropertyItemInternal.cs
- ScrollableControl.cs
- ChtmlTextWriter.cs
- ComponentCommands.cs
- OneOfElement.cs
- LinkButton.cs
- ParentUndoUnit.cs
- MemberRestriction.cs
- AttributeProviderAttribute.cs
- XmlAnyElementAttributes.cs
- TableLayoutSettingsTypeConverter.cs
- ObjectPersistData.cs
- GPRECTF.cs
- ExtendedPropertyDescriptor.cs
- ContractsBCL.cs
- ProgressBarRenderer.cs
- UserControl.cs
- RelationshipConverter.cs
- SqlInternalConnectionTds.cs
- VSWCFServiceContractGenerator.cs
- EmptyElement.cs
- WebPartCatalogCloseVerb.cs
- ErrorFormatter.cs
- ObjectItemCollection.cs
- CommonRemoteMemoryBlock.cs
- XhtmlBasicLinkAdapter.cs
- XdrBuilder.cs
- ExecutionEngineException.cs
- TemplateControlCodeDomTreeGenerator.cs
- ApplicationBuildProvider.cs
- ErrorFormatter.cs
- ShaperBuffers.cs
- SynchronizationContext.cs
- SQLInt64Storage.cs
- ArrangedElementCollection.cs
- OptimisticConcurrencyException.cs
- WarningException.cs
- InvokePattern.cs
- AsyncStreamReader.cs
- EntityDataSourceDesigner.cs
- PathFigureCollectionConverter.cs
- WebPartPersonalization.cs
- RuntimeResourceSet.cs
- NullableLongAverageAggregationOperator.cs
- SqlProcedureAttribute.cs
- SafeTimerHandle.cs
- SeparatorAutomationPeer.cs
- RouteValueExpressionBuilder.cs
- Model3D.cs
- OracleDataReader.cs
- RenamedEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- SqlRecordBuffer.cs
- SerializationAttributes.cs
- TableSectionStyle.cs
- CodeVariableDeclarationStatement.cs
- XmlIncludeAttribute.cs
- UrlMappingCollection.cs
- FunctionNode.cs
- GetWinFXPath.cs
- AssociationEndMember.cs
- CounterCreationDataCollection.cs
- DataSysAttribute.cs
- RegexCode.cs
- DayRenderEvent.cs
- MemberMemberBinding.cs
- DetailsView.cs
- TextSelectionProcessor.cs
- BindingContext.cs
- PrimaryKeyTypeConverter.cs
- ExtractCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- MenuAdapter.cs
- ValidationRule.cs
- TiffBitmapDecoder.cs
- DataServiceProcessingPipeline.cs
- RuntimeHandles.cs
- X509Utils.cs
- Resources.Designer.cs
- RuntimeHelpers.cs
- DataTemplateSelector.cs
- StdValidatorsAndConverters.cs
- RelationshipEnd.cs
- TagNameToTypeMapper.cs
- XmlSchemaComplexContentRestriction.cs
- IndexOutOfRangeException.cs
- Rfc2898DeriveBytes.cs
- InfoCardRSACryptoProvider.cs
- SqlEnums.cs
- CacheAxisQuery.cs
- DiscoveryReferences.cs
- DuplicateMessageDetector.cs
- ItemsChangedEventArgs.cs