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
- NotifyInputEventArgs.cs
- MimeTypePropertyAttribute.cs
- CacheAxisQuery.cs
- ListViewTableRow.cs
- EntitySqlQueryBuilder.cs
- DesignerAttributeInfo.cs
- RulePatternOps.cs
- ConfigsHelper.cs
- Semaphore.cs
- FormsAuthenticationConfiguration.cs
- DeviceSpecificDialogCachedState.cs
- StringFunctions.cs
- Html32TextWriter.cs
- DataGridRowClipboardEventArgs.cs
- XmlSchemaException.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridViewCellLinkedList.cs
- CallbackValidatorAttribute.cs
- Span.cs
- WebBaseEventKeyComparer.cs
- WebPartZoneCollection.cs
- AttachedAnnotation.cs
- WmlLinkAdapter.cs
- NameValueSectionHandler.cs
- ObjectItemNoOpAssemblyLoader.cs
- DataServiceQueryContinuation.cs
- ConfigurationCollectionAttribute.cs
- base64Transforms.cs
- MediaContext.cs
- _ShellExpression.cs
- Math.cs
- PersonalizationProvider.cs
- Grid.cs
- EventWaitHandleSecurity.cs
- ToolStripCodeDomSerializer.cs
- EditingCoordinator.cs
- ResourceCategoryAttribute.cs
- XmlMtomReader.cs
- XsltLibrary.cs
- UriTemplateTableMatchCandidate.cs
- ParameterBuilder.cs
- HttpWebRequest.cs
- OpCellTreeNode.cs
- DrawingAttributes.cs
- CompilationUnit.cs
- Geometry3D.cs
- IItemContainerGenerator.cs
- Pen.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ToolStripScrollButton.cs
- SQLSingle.cs
- RC2CryptoServiceProvider.cs
- XmlArrayItemAttribute.cs
- RbTree.cs
- BaseConfigurationRecord.cs
- HttpListenerTimeoutManager.cs
- MachineKeyConverter.cs
- AssemblyInfo.cs
- HttpRawResponse.cs
- PathSegmentCollection.cs
- OdbcDataAdapter.cs
- ConstraintStruct.cs
- ProxyElement.cs
- RecognizedWordUnit.cs
- ToolStripItemEventArgs.cs
- SqlDataSourceConnectionPanel.cs
- XPathDocumentNavigator.cs
- SynchronizationFilter.cs
- TimeSpanSecondsConverter.cs
- WindowAutomationPeer.cs
- XmlNamespaceManager.cs
- WebPermission.cs
- AliasedSlot.cs
- BindingListCollectionView.cs
- CodeMemberField.cs
- MetadataSerializer.cs
- XmlSchemaGroupRef.cs
- IDispatchConstantAttribute.cs
- CryptoApi.cs
- CapabilitiesState.cs
- XmlDocumentType.cs
- Command.cs
- ConfigsHelper.cs
- DataServiceRequestArgs.cs
- ZeroOpNode.cs
- InnerItemCollectionView.cs
- SecurityManager.cs
- ConnectionPoolManager.cs
- TableCell.cs
- PrtCap_Public_Simple.cs
- XmlSchemaAnnotation.cs
- DocumentSequence.cs
- PermissionSetEnumerator.cs
- Bits.cs
- Compiler.cs
- SplineKeyFrames.cs
- TextTreeInsertUndoUnit.cs
- FileAccessException.cs
- ImageIndexConverter.cs
- Utility.cs