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
- ObjectManager.cs
- BamlBinaryReader.cs
- AlternationConverter.cs
- DecoderReplacementFallback.cs
- ServicePointManager.cs
- CollectionContainer.cs
- SearchForVirtualItemEventArgs.cs
- PersonalizationDictionary.cs
- OledbConnectionStringbuilder.cs
- ExtenderControl.cs
- BaseProcessor.cs
- CompilationLock.cs
- ReturnValue.cs
- CommandValueSerializer.cs
- Matrix3DStack.cs
- WorkflowPersistenceService.cs
- OleDbEnumerator.cs
- ActivityExecutor.cs
- ConditionalDesigner.cs
- CommentEmitter.cs
- TransformedBitmap.cs
- UrlPropertyAttribute.cs
- RuleSettingsCollection.cs
- EnterpriseServicesHelper.cs
- SocketCache.cs
- StyleCollection.cs
- WebPartCatalogAddVerb.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- BitConverter.cs
- TextDecoration.cs
- MachineSettingsSection.cs
- Registry.cs
- UriTemplateMatchException.cs
- InstanceStoreQueryResult.cs
- ObjectStateFormatter.cs
- FormatControl.cs
- RegexMatchCollection.cs
- DesignTimeTemplateParser.cs
- AccessDataSource.cs
- ScriptControl.cs
- Solver.cs
- BinaryObjectInfo.cs
- Manipulation.cs
- UriTemplateTable.cs
- HatchBrush.cs
- WebBrowsableAttribute.cs
- DataKeyArray.cs
- AnnotationService.cs
- LabelEditEvent.cs
- PointLight.cs
- BitmapPalettes.cs
- DataListGeneralPage.cs
- NamespaceMapping.cs
- FormsAuthenticationCredentials.cs
- AggregateNode.cs
- CodeMethodReturnStatement.cs
- HostingEnvironmentSection.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ModuleConfigurationInfo.cs
- SafeBitVector32.cs
- InfoCardServiceInstallComponent.cs
- DataGridViewBand.cs
- XPathNode.cs
- BitmapMetadataEnumerator.cs
- WebPartTransformerAttribute.cs
- QuaternionValueSerializer.cs
- DataPagerFieldCollection.cs
- activationcontext.cs
- DeobfuscatingStream.cs
- NameValueSectionHandler.cs
- IntegerValidator.cs
- EntityTypeBase.cs
- LineVisual.cs
- FontStretches.cs
- XmlObjectSerializerWriteContextComplex.cs
- IgnoreFlushAndCloseStream.cs
- SourceFileInfo.cs
- SourceFileBuildProvider.cs
- HtmlInputRadioButton.cs
- PageOutputColor.cs
- IdentityModelDictionary.cs
- EventLogPermissionEntryCollection.cs
- SQLInt32Storage.cs
- DispatcherBuilder.cs
- GraphicsContext.cs
- FieldNameLookup.cs
- BeginEvent.cs
- DocumentViewerBase.cs
- SectionRecord.cs
- CorrelationManager.cs
- AppDomainShutdownMonitor.cs
- BlockCollection.cs
- SoapClientMessage.cs
- RectKeyFrameCollection.cs
- MediaElementAutomationPeer.cs
- WebConfigurationManager.cs
- ParenthesizePropertyNameAttribute.cs
- HashAlgorithm.cs
- ImagingCache.cs
- RefreshPropertiesAttribute.cs