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
- String.cs
- PropertyTab.cs
- CrossAppDomainChannel.cs
- DynamicHyperLink.cs
- baseaxisquery.cs
- ResponseBodyWriter.cs
- DataControlField.cs
- UrlMappingsModule.cs
- ToolstripProfessionalRenderer.cs
- RegexWorker.cs
- ActivityDesignerLayoutSerializers.cs
- Screen.cs
- NullableConverter.cs
- XmlnsPrefixAttribute.cs
- OpacityConverter.cs
- PointAnimationClockResource.cs
- CodeBinaryOperatorExpression.cs
- HostUtils.cs
- messageonlyhwndwrapper.cs
- TraceHandler.cs
- SeekableMessageNavigator.cs
- WebReferencesBuildProvider.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlProvider.cs
- _OverlappedAsyncResult.cs
- HttpStreamXmlDictionaryWriter.cs
- StorageInfo.cs
- DataBoundControlParameterTarget.cs
- ObjectMaterializedEventArgs.cs
- HttpProfileBase.cs
- NamespaceEmitter.cs
- XNodeValidator.cs
- SqlConnectionStringBuilder.cs
- BridgeDataReader.cs
- SimpleTypesSurrogate.cs
- Msec.cs
- HostingEnvironmentSection.cs
- WebBrowser.cs
- WeakReferenceKey.cs
- LinkedList.cs
- ScriptingProfileServiceSection.cs
- ObjectFullSpanRewriter.cs
- XslCompiledTransform.cs
- EditorPart.cs
- FunctionImportElement.cs
- RuntimeHelpers.cs
- SystemFonts.cs
- PropertyBuilder.cs
- GeometryDrawing.cs
- EndpointAddressAugust2004.cs
- XmlSchemaAnnotated.cs
- StyleModeStack.cs
- SerializationSectionGroup.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- TreeViewImageIndexConverter.cs
- OleDbRowUpdatedEvent.cs
- DataConnectionHelper.cs
- DBSchemaTable.cs
- DataObjectEventArgs.cs
- XmlRootAttribute.cs
- EventToken.cs
- XmlName.cs
- Cursor.cs
- SHA256Managed.cs
- TileBrush.cs
- SmtpNetworkElement.cs
- Calendar.cs
- MultiBinding.cs
- Directory.cs
- CompModSwitches.cs
- ExportOptions.cs
- SchemaManager.cs
- RuntimeArgumentHandle.cs
- PropertyGeneratedEventArgs.cs
- METAHEADER.cs
- SyndicationSerializer.cs
- XmlAttributeHolder.cs
- DefaultHttpHandler.cs
- DocobjHost.cs
- MessageQueueKey.cs
- View.cs
- ProtectedProviderSettings.cs
- XmlSchemaAnnotated.cs
- Component.cs
- AuthenticationSchemesHelper.cs
- DesignTimeParseData.cs
- AssociationSetEnd.cs
- SectionInformation.cs
- TranslateTransform.cs
- Positioning.cs
- Psha1DerivedKeyGeneratorHelper.cs
- ImplicitInputBrush.cs
- DbProviderFactories.cs
- UIInitializationException.cs
- dataSvcMapFileLoader.cs
- CodeTypeReferenceExpression.cs
- XmlDataCollection.cs
- ExceptionRoutedEventArgs.cs
- PackageRelationshipCollection.cs
- CommandTreeTypeHelper.cs