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
- UpdateProgress.cs
- PrtCap_Reader.cs
- Imaging.cs
- SecurityRuntime.cs
- RadioButtonRenderer.cs
- SessionState.cs
- columnmapkeybuilder.cs
- DataTableClearEvent.cs
- ReadOnlyDataSource.cs
- LayoutEvent.cs
- ArraySegment.cs
- ConfigurationPropertyAttribute.cs
- FlowchartSizeFeature.cs
- IndexerNameAttribute.cs
- QualifiedCellIdBoolean.cs
- ConfigurationElement.cs
- infer.cs
- SecurityPolicyVersion.cs
- CodeEventReferenceExpression.cs
- Padding.cs
- GeometryCombineModeValidation.cs
- SettingsPropertyIsReadOnlyException.cs
- SqlCaseSimplifier.cs
- MeasurementDCInfo.cs
- DelimitedListTraceListener.cs
- ConnectionStringSettings.cs
- safelinkcollection.cs
- PolicyException.cs
- PassportAuthentication.cs
- Menu.cs
- Crc32Helper.cs
- TypeSchema.cs
- GridViewRowEventArgs.cs
- DataTableMappingCollection.cs
- CompilerError.cs
- MatrixAnimationBase.cs
- ManualResetEventSlim.cs
- WebPartMenu.cs
- tooltip.cs
- QilStrConcat.cs
- Polygon.cs
- SortAction.cs
- CommandID.cs
- ExcludeFromCodeCoverageAttribute.cs
- NotificationContext.cs
- TagElement.cs
- FunctionGenerator.cs
- HttpRequestContext.cs
- XpsFilter.cs
- BasicViewGenerator.cs
- ProgressBar.cs
- ProjectionPlanCompiler.cs
- CollectionViewGroup.cs
- AtlasWeb.Designer.cs
- ThicknessAnimation.cs
- IriParsingElement.cs
- TailCallAnalyzer.cs
- InArgumentConverter.cs
- XmlSchemaGroup.cs
- ConnectionManagementElement.cs
- ConfigDefinitionUpdates.cs
- ObjectListDesigner.cs
- StoreItemCollection.Loader.cs
- SimpleRecyclingCache.cs
- AssociatedControlConverter.cs
- xdrvalidator.cs
- SqlGenericUtil.cs
- ProgressChangedEventArgs.cs
- FixedTextSelectionProcessor.cs
- SmiRequestExecutor.cs
- documentsequencetextcontainer.cs
- XmlAttributeOverrides.cs
- HyperLinkStyle.cs
- PerformanceCounterPermissionEntry.cs
- WorkflowTransactionOptions.cs
- GPStream.cs
- DirectionalLight.cs
- HandlerElement.cs
- PartialClassGenerationTask.cs
- NegationPusher.cs
- TextPointer.cs
- CalendarDay.cs
- ToolStripContainer.cs
- ConnectionProviderAttribute.cs
- QueueProcessor.cs
- TreeViewImageIndexConverter.cs
- serverconfig.cs
- SoapProtocolImporter.cs
- Table.cs
- GatewayDefinition.cs
- TabItem.cs
- AstTree.cs
- ClaimTypeElement.cs
- CodeAttachEventStatement.cs
- ByteAnimationUsingKeyFrames.cs
- CharEnumerator.cs
- DataBindingList.cs
- ResourcePermissionBase.cs
- PresentationAppDomainManager.cs
- BuilderInfo.cs