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
- HybridDictionary.cs
- PropertyValueUIItem.cs
- RemoteArgument.cs
- DataMemberAttribute.cs
- GetLastErrorDetailsRequest.cs
- PropertyGridView.cs
- UpdateTranslator.cs
- ConnectionPoolManager.cs
- HtmlTableRow.cs
- ButtonRenderer.cs
- PtsContext.cs
- DataRecord.cs
- IndexedString.cs
- Typography.cs
- CodeParameterDeclarationExpressionCollection.cs
- RawAppCommandInputReport.cs
- StrokeCollection2.cs
- SignatureGenerator.cs
- ObjectListDesigner.cs
- Property.cs
- TableParaClient.cs
- X509WindowsSecurityToken.cs
- SafeSystemMetrics.cs
- TrackingMemoryStream.cs
- ArrayWithOffset.cs
- EditorServiceContext.cs
- OleStrCAMarshaler.cs
- DetailsViewDeletedEventArgs.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- MimeTypeAttribute.cs
- ProfilePropertyMetadata.cs
- AutoFocusStyle.xaml.cs
- TerminatorSinks.cs
- SqlDataSourceFilteringEventArgs.cs
- GlobalizationAssembly.cs
- EntityClassGenerator.cs
- AtlasWeb.Designer.cs
- IdleTimeoutMonitor.cs
- CodeTypeDeclarationCollection.cs
- SystemColorTracker.cs
- ParseNumbers.cs
- ControlIdConverter.cs
- StatusBarItem.cs
- InvocationExpression.cs
- SymLanguageVendor.cs
- GuidConverter.cs
- TextLineBreak.cs
- ProfilePropertyNameValidator.cs
- ClientTargetCollection.cs
- WindowsEditBoxRange.cs
- Debug.cs
- dataobject.cs
- ReflectionPermission.cs
- DataKey.cs
- IDQuery.cs
- UnSafeCharBuffer.cs
- AutoResizedEvent.cs
- SqlStream.cs
- SessionStateItemCollection.cs
- SqlCharStream.cs
- ListSourceHelper.cs
- DockingAttribute.cs
- Error.cs
- XPathNavigator.cs
- InstanceNotFoundException.cs
- VerificationAttribute.cs
- ResourceManager.cs
- DescendentsWalker.cs
- XmlSerializationGeneratedCode.cs
- NopReturnReader.cs
- WCFBuildProvider.cs
- ViewStateChangedEventArgs.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- _HeaderInfoTable.cs
- ObjectDataProvider.cs
- ScriptControlManager.cs
- Validator.cs
- ToolStripPanelDesigner.cs
- CompilerHelpers.cs
- ParseNumbers.cs
- CrossAppDomainChannel.cs
- ChangeTracker.cs
- DeflateEmulationStream.cs
- EntityClientCacheEntry.cs
- Timer.cs
- Attributes.cs
- ConnectionInterfaceCollection.cs
- TextAnchor.cs
- NamespaceImport.cs
- CatalogPartCollection.cs
- WindowsProgressbar.cs
- Cursor.cs
- NamedPipeWorkerProcess.cs
- HttpDebugHandler.cs
- EventMappingSettingsCollection.cs
- TemplatedAdorner.cs
- ConstNode.cs
- Assert.cs
- ParseHttpDate.cs
- ClipboardData.cs