Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataGridViewCellCancelEventArgs.cs
- BindingExpression.cs
- DesigntimeLicenseContextSerializer.cs
- MultiView.cs
- PngBitmapDecoder.cs
- XPathNodeIterator.cs
- UnsafeNativeMethods.cs
- FixedElement.cs
- EventLogPermissionEntryCollection.cs
- CodePageEncoding.cs
- COM2PropertyDescriptor.cs
- XmlDownloadManager.cs
- CheckableControlBaseAdapter.cs
- remotingproxy.cs
- DataGridTable.cs
- FontClient.cs
- AttachedAnnotation.cs
- HMACRIPEMD160.cs
- Size3D.cs
- WindowsGraphicsCacheManager.cs
- EntityCollection.cs
- DesignerForm.cs
- CodeRemoveEventStatement.cs
- UriTemplateLiteralQueryValue.cs
- COM2Properties.cs
- QilChoice.cs
- NetCodeGroup.cs
- IntersectQueryOperator.cs
- TimeSpanStorage.cs
- OdbcConnectionFactory.cs
- ObjectNotFoundException.cs
- UInt64.cs
- xmlNames.cs
- ChameleonKey.cs
- CodeTypeReferenceCollection.cs
- MetaForeignKeyColumn.cs
- RouteData.cs
- TextBlockAutomationPeer.cs
- DelegatedStream.cs
- ListSortDescription.cs
- StandardOleMarshalObject.cs
- RightsManagementPermission.cs
- WebPartConnectionsConfigureVerb.cs
- MutexSecurity.cs
- SafeNativeMethods.cs
- TextureBrush.cs
- Action.cs
- NamespaceList.cs
- InvariantComparer.cs
- TreeNode.cs
- MatrixCamera.cs
- HiddenFieldPageStatePersister.cs
- WebPartUtil.cs
- COM2PropertyDescriptor.cs
- TraversalRequest.cs
- QueryTask.cs
- SHA256Managed.cs
- CodeNamespaceImport.cs
- Condition.cs
- WebPartConnectionsCancelVerb.cs
- DebuggerAttributes.cs
- OptimisticConcurrencyException.cs
- JsonEnumDataContract.cs
- DetailsViewPagerRow.cs
- FileDialogCustomPlace.cs
- StdRegProviderWrapper.cs
- Crypto.cs
- PropertyEmitterBase.cs
- ProfileSettingsCollection.cs
- PropertyGridView.cs
- WindowInteropHelper.cs
- SelectQueryOperator.cs
- FileDialog_Vista.cs
- XhtmlBasicControlAdapter.cs
- OdbcHandle.cs
- SqlConnectionHelper.cs
- ResourceContainer.cs
- LowerCaseStringConverter.cs
- DataGridViewCellEventArgs.cs
- EdmFunctions.cs
- DesignerSelectionListAdapter.cs
- BuildManagerHost.cs
- ToolStripProgressBar.cs
- ObjectListCommandCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- CngUIPolicy.cs
- NotFiniteNumberException.cs
- ThreadExceptionEvent.cs
- OpCellTreeNode.cs
- HtmlTextArea.cs
- StylusPointPropertyUnit.cs
- CustomAttributeSerializer.cs
- XmlSchemaSimpleTypeRestriction.cs
- ToReply.cs
- IconEditor.cs
- TextTreeRootNode.cs
- ModuleElement.cs
- XmlUtilWriter.cs
- recordstatefactory.cs
- Paragraph.cs