Code:
/ FX-1434 / FX-1434 / 1.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
- ContextMenuService.cs
- SerializableAttribute.cs
- StatusBarItemAutomationPeer.cs
- SoapReflectionImporter.cs
- XmlValidatingReader.cs
- HtmlProps.cs
- StrokeDescriptor.cs
- Point4D.cs
- Icon.cs
- HebrewNumber.cs
- ImportedNamespaceContextItem.cs
- EditingCommands.cs
- ControlCachePolicy.cs
- QuaternionConverter.cs
- UnsafePeerToPeerMethods.cs
- NavigationWindow.cs
- XmlElementAttribute.cs
- PolygonHotSpot.cs
- ComboBox.cs
- XamlReader.cs
- StructuralCache.cs
- EncoderExceptionFallback.cs
- SchemaImporter.cs
- LoginDesignerUtil.cs
- CellRelation.cs
- PrintSchema.cs
- DiscoveryClientOutputChannel.cs
- HtmlTable.cs
- HostingEnvironmentException.cs
- XmlSchemaComplexType.cs
- PasswordBoxAutomationPeer.cs
- ValidationHelpers.cs
- TextPattern.cs
- DataServiceRequestException.cs
- Composition.cs
- securitycriticaldata.cs
- Int32RectValueSerializer.cs
- SqlUDTStorage.cs
- BuildTopDownAttribute.cs
- StylusPlugin.cs
- RepeaterItemCollection.cs
- Geometry3D.cs
- CaseInsensitiveHashCodeProvider.cs
- AuthenticatingEventArgs.cs
- Permission.cs
- CustomPopupPlacement.cs
- ToolZone.cs
- CqlWriter.cs
- ProfileManager.cs
- TypeBuilder.cs
- securitycriticaldataformultiplegetandset.cs
- DataGridLength.cs
- CodeBinaryOperatorExpression.cs
- EntityDataSourceWrapper.cs
- WebBrowsableAttribute.cs
- TextTreeInsertElementUndoUnit.cs
- JulianCalendar.cs
- SoapSchemaImporter.cs
- Int16Storage.cs
- Transform3D.cs
- Decoder.cs
- BinaryObjectWriter.cs
- MdiWindowListItemConverter.cs
- MachineKeySection.cs
- BitmapImage.cs
- PageCodeDomTreeGenerator.cs
- LineServicesRun.cs
- StdRegProviderWrapper.cs
- TPLETWProvider.cs
- XmlSchemaAnyAttribute.cs
- ManifestResourceInfo.cs
- UnmanagedHandle.cs
- EventProperty.cs
- MembershipUser.cs
- RectConverter.cs
- CompositeCollectionView.cs
- Cloud.cs
- CookieParameter.cs
- SiteMapDesignerDataSourceView.cs
- BinHexDecoder.cs
- TreeNodeStyle.cs
- SqlTriggerContext.cs
- NumericUpDownAccelerationCollection.cs
- Point3DAnimation.cs
- WebSysDisplayNameAttribute.cs
- ProtocolElement.cs
- SafeMILHandle.cs
- BackStopAuthenticationModule.cs
- Vector3D.cs
- XPathParser.cs
- SerialReceived.cs
- X509CertificateInitiatorServiceCredential.cs
- FixedSOMTableRow.cs
- DataGridAutoFormat.cs
- WhiteSpaceTrimStringConverter.cs
- OwnerDrawPropertyBag.cs
- ApplicationActivator.cs
- SEHException.cs
- ControlLocalizer.cs
- PeerUnsafeNativeCryptMethods.cs