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
- OleDbRowUpdatingEvent.cs
- Misc.cs
- HtmlInputControl.cs
- OdbcConnectionFactory.cs
- MessageQueueInstaller.cs
- SoapDocumentServiceAttribute.cs
- DataObject.cs
- RootBrowserWindowProxy.cs
- EmptyEnumerator.cs
- BitmapDownload.cs
- httpstaticobjectscollection.cs
- SafeNativeMemoryHandle.cs
- Control.cs
- _ListenerRequestStream.cs
- ClientScriptManagerWrapper.cs
- KeysConverter.cs
- HtmlControlAdapter.cs
- DoubleLink.cs
- ProcessInfo.cs
- NetMsmqSecurityElement.cs
- SqlReorderer.cs
- OleDbRowUpdatingEvent.cs
- DocumentViewerConstants.cs
- DispatchWrapper.cs
- XamlFilter.cs
- HtmlInputControl.cs
- TextDecorationUnitValidation.cs
- KoreanCalendar.cs
- ClientTargetCollection.cs
- ZipIOExtraFieldZip64Element.cs
- InternalRelationshipCollection.cs
- ImageListImageEditor.cs
- StreamReader.cs
- HtmlHistory.cs
- MenuItemAutomationPeer.cs
- XmlSchemaObject.cs
- IDictionary.cs
- CompiledQueryCacheKey.cs
- SizeChangedInfo.cs
- JoinGraph.cs
- PropertyChangingEventArgs.cs
- IPHostEntry.cs
- login.cs
- Baml2006SchemaContext.cs
- DiscoveryClientRequestChannel.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Accessible.cs
- ByteAnimationUsingKeyFrames.cs
- LocalizeDesigner.cs
- DataServiceHost.cs
- odbcmetadatafactory.cs
- Rectangle.cs
- HttpRuntimeSection.cs
- AuthenticateEventArgs.cs
- TypeGeneratedEventArgs.cs
- TextRangeSerialization.cs
- RelationshipDetailsRow.cs
- ElementsClipboardData.cs
- webclient.cs
- DataKey.cs
- SqlExpressionNullability.cs
- PointAnimationUsingPath.cs
- Ipv6Element.cs
- SoapAttributes.cs
- DesignerDataParameter.cs
- Rect.cs
- HealthMonitoringSectionHelper.cs
- XmlReflectionMember.cs
- LocalizationCodeDomSerializer.cs
- DetailsViewUpdatedEventArgs.cs
- SplineQuaternionKeyFrame.cs
- PageAsyncTask.cs
- followingquery.cs
- LogicalExpr.cs
- TrackingLocation.cs
- SemaphoreSecurity.cs
- ConstraintStruct.cs
- MDIClient.cs
- CacheEntry.cs
- Container.cs
- FolderLevelBuildProvider.cs
- ResourceType.cs
- ExceptionValidationRule.cs
- Label.cs
- _AcceptOverlappedAsyncResult.cs
- WindowsRichEditRange.cs
- ItemsControl.cs
- X509Chain.cs
- MenuItemAutomationPeer.cs
- RuleEngine.cs
- ByteStream.cs
- SqlMethodAttribute.cs
- CollectionChangeEventArgs.cs
- QueryOperatorEnumerator.cs
- OverflowException.cs
- ArgumentOutOfRangeException.cs
- TextTreeTextBlock.cs
- DSACryptoServiceProvider.cs
- ProfessionalColors.cs