Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSystemProvider.cs
- TextTreeDeleteContentUndoUnit.cs
- ViewSimplifier.cs
- XpsFixedDocumentReaderWriter.cs
- SoapExtension.cs
- GradientPanel.cs
- LocalizableResourceBuilder.cs
- DiscoveryMessageSequence11.cs
- AdapterDictionary.cs
- Stack.cs
- XmlDictionaryReader.cs
- NamedObject.cs
- SelectedDatesCollection.cs
- SQLInt32Storage.cs
- ProfilePropertyMetadata.cs
- MemberProjectedSlot.cs
- BaseCodePageEncoding.cs
- SrgsDocument.cs
- WindowsToolbar.cs
- CustomErrorsSection.cs
- _NetworkingPerfCounters.cs
- WebPartEditorOkVerb.cs
- OleDbDataReader.cs
- util.cs
- DbParameterCollectionHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- SqlReferenceCollection.cs
- DataGridViewCellEventArgs.cs
- CompositeDataBoundControl.cs
- CurrentChangedEventManager.cs
- exports.cs
- WebPartManagerDesigner.cs
- MultipartIdentifier.cs
- ComplexBindingPropertiesAttribute.cs
- FramingChannels.cs
- DataGridViewRowEventArgs.cs
- Compiler.cs
- XmlSchemaExternal.cs
- HttpModuleCollection.cs
- CursorConverter.cs
- BindingValueChangedEventArgs.cs
- ImageSourceConverter.cs
- TypeSystem.cs
- OdbcDataAdapter.cs
- BasePropertyDescriptor.cs
- WindowsAltTab.cs
- DesignBindingValueUIHandler.cs
- PrivilegedConfigurationManager.cs
- ScrollItemPattern.cs
- PersonalizationStateInfo.cs
- WindowsIPAddress.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- Assert.cs
- ConstraintStruct.cs
- AuthenticateEventArgs.cs
- StrongNameMembershipCondition.cs
- TransformProviderWrapper.cs
- HttpHandlerAction.cs
- RepeaterCommandEventArgs.cs
- GridViewPageEventArgs.cs
- RegexRunnerFactory.cs
- ResolveCriteriaApril2005.cs
- DSACryptoServiceProvider.cs
- ImageList.cs
- CommonXSendMessage.cs
- XmlSchemaSimpleTypeRestriction.cs
- RegistrationServices.cs
- ElapsedEventArgs.cs
- EncodingInfo.cs
- TransportBindingElement.cs
- DesignerTextBoxAdapter.cs
- ECDiffieHellmanCng.cs
- EntityDataSourceMemberPath.cs
- ListenerSessionConnectionReader.cs
- ApplyTemplatesAction.cs
- InkCanvasFeedbackAdorner.cs
- GridViewCancelEditEventArgs.cs
- VScrollProperties.cs
- ValidationVisibilityAttribute.cs
- Track.cs
- AppDomainInstanceProvider.cs
- SelectionWordBreaker.cs
- CodeConstructor.cs
- TemplateComponentConnector.cs
- MergePropertyDescriptor.cs
- RelationshipEnd.cs
- JournalEntryStack.cs
- ResXResourceReader.cs
- EnumValAlphaComparer.cs
- dataprotectionpermission.cs
- WebPartActionVerb.cs
- Timeline.cs
- PlanCompilerUtil.cs
- ConsumerConnectionPointCollection.cs
- BrushConverter.cs
- HierarchicalDataBoundControl.cs
- DataSourceBooleanViewSchemaConverter.cs
- BehaviorEditorPart.cs
- CodeDirectionExpression.cs
- EditorServiceContext.cs