Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrimaryKeyTypeConverter.cs
- FrameworkTemplate.cs
- WebPartCloseVerb.cs
- GeometryCombineModeValidation.cs
- X509Chain.cs
- EdmMember.cs
- WorkflowServiceInstance.cs
- MultipleViewProviderWrapper.cs
- DataBinder.cs
- AtomMaterializerLog.cs
- EncoderParameters.cs
- HiddenField.cs
- DBCommand.cs
- JapaneseLunisolarCalendar.cs
- ProtocolsSection.cs
- DataServiceKeyAttribute.cs
- _UncName.cs
- OleCmdHelper.cs
- OlePropertyStructs.cs
- LineVisual.cs
- KnownColorTable.cs
- RijndaelManagedTransform.cs
- Style.cs
- CustomValidator.cs
- Timeline.cs
- XsltLibrary.cs
- OLEDB_Util.cs
- UIElementParaClient.cs
- oledbmetadatacollectionnames.cs
- mansign.cs
- InternalConfigSettingsFactory.cs
- ModelMemberCollection.cs
- EnumConverter.cs
- HttpException.cs
- SurrogateEncoder.cs
- UpdateTranslator.cs
- WebReferencesBuildProvider.cs
- BitConverter.cs
- HandlerBase.cs
- Substitution.cs
- AttributeConverter.cs
- CookielessHelper.cs
- WebConfigurationManager.cs
- DocumentApplicationJournalEntry.cs
- WorkflowInstanceSuspendedRecord.cs
- EmissiveMaterial.cs
- DataGridViewBand.cs
- dtdvalidator.cs
- SemanticResolver.cs
- Predicate.cs
- ButtonFlatAdapter.cs
- BitHelper.cs
- future.cs
- ApplicationBuildProvider.cs
- CompressionTransform.cs
- FrameworkContentElement.cs
- QueryStringParameter.cs
- LinkArea.cs
- MsmqPoisonMessageException.cs
- WebPartExportVerb.cs
- FileRecordSequence.cs
- PeerTransportSecuritySettings.cs
- EdmMember.cs
- DbQueryCommandTree.cs
- MD5.cs
- Faults.cs
- TreeNodeStyleCollection.cs
- JapaneseLunisolarCalendar.cs
- DockProviderWrapper.cs
- StoreAnnotationsMap.cs
- FederatedMessageSecurityOverHttp.cs
- FormViewCommandEventArgs.cs
- ContainerParagraph.cs
- LogConverter.cs
- TransformerInfo.cs
- PersistenceProviderElement.cs
- PaintEvent.cs
- Int32Storage.cs
- BitmapEffectDrawingContextState.cs
- LineGeometry.cs
- AccessDataSourceWizardForm.cs
- WorkflowDesignerMessageFilter.cs
- Helper.cs
- HttpApplicationFactory.cs
- GeometryGroup.cs
- SapiRecognizer.cs
- MaskedTextBoxTextEditorDropDown.cs
- RegexWriter.cs
- ZipIOExtraFieldPaddingElement.cs
- SR.cs
- ObjectResult.cs
- SqlAliasesReferenced.cs
- ConstraintStruct.cs
- TextDecorationCollection.cs
- SimpleApplicationHost.cs
- ServiceInfoCollection.cs
- WorkflowExecutor.cs
- SubMenuStyleCollection.cs
- SchemaType.cs
- HitTestFilterBehavior.cs