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
- UpdateEventArgs.cs
- CodePageUtils.cs
- IgnoreFlushAndCloseStream.cs
- SlotInfo.cs
- MimeTextImporter.cs
- UserPreferenceChangedEventArgs.cs
- SQLMoneyStorage.cs
- Base64Decoder.cs
- Pointer.cs
- CodeDefaultValueExpression.cs
- ParserExtension.cs
- OpCellTreeNode.cs
- AnimationException.cs
- AssertSection.cs
- Literal.cs
- XmlFormatExtensionPrefixAttribute.cs
- BinaryObjectWriter.cs
- BatchWriter.cs
- XmlSchemaSimpleTypeList.cs
- PeerNameRecordCollection.cs
- DelayDesigner.cs
- PassportAuthenticationModule.cs
- StreamInfo.cs
- ReverseInheritProperty.cs
- ConfigurationElementProperty.cs
- HttpApplicationFactory.cs
- PersonalizationProvider.cs
- Highlights.cs
- JournalEntry.cs
- EdmProviderManifest.cs
- StandardToolWindows.cs
- ClassDataContract.cs
- GPStream.cs
- ConnectionStringSettingsCollection.cs
- StringWriter.cs
- TextRangeEdit.cs
- MultiBindingExpression.cs
- XPathDescendantIterator.cs
- X509ChainElement.cs
- RenderDataDrawingContext.cs
- XmlNode.cs
- OneToOneMappingSerializer.cs
- Rss20FeedFormatter.cs
- filewebrequest.cs
- ZipIOLocalFileHeader.cs
- TreeView.cs
- ItemContainerGenerator.cs
- BamlRecordHelper.cs
- WebPartConnectVerb.cs
- GroupDescription.cs
- MethodCallTranslator.cs
- NetworkInterface.cs
- WebPartAddingEventArgs.cs
- IndicShape.cs
- SelectionItemProviderWrapper.cs
- PenThreadWorker.cs
- KeyboardDevice.cs
- SqlCacheDependencyDatabase.cs
- Stackframe.cs
- UrlRoutingHandler.cs
- ComponentCollection.cs
- Drawing.cs
- ListDictionaryInternal.cs
- CheckBoxBaseAdapter.cs
- TraceContextEventArgs.cs
- MenuItemCollection.cs
- HttpApplicationFactory.cs
- RelationshipSet.cs
- XmlSchemaSequence.cs
- XmlTextReader.cs
- ObjectPersistData.cs
- DiscreteKeyFrames.cs
- DataTransferEventArgs.cs
- TextTreePropertyUndoUnit.cs
- mediaeventshelper.cs
- CodeThrowExceptionStatement.cs
- HttpResponse.cs
- OptimalBreakSession.cs
- NetNamedPipeBindingCollectionElement.cs
- Int16Storage.cs
- UniqueConstraint.cs
- HierarchicalDataBoundControl.cs
- Publisher.cs
- XmlSchemaSimpleContentExtension.cs
- Visual.cs
- HttpModuleActionCollection.cs
- MouseActionConverter.cs
- SmtpClient.cs
- _Win32.cs
- InstancePersistenceCommand.cs
- BitmapEffectGeneralTransform.cs
- CTreeGenerator.cs
- StylusPointProperties.cs
- ProcessModelInfo.cs
- DispatcherObject.cs
- CompilerError.cs
- WindowProviderWrapper.cs
- PropertyValueUIItem.cs
- DisableDpiAwarenessAttribute.cs
- DragEvent.cs