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
- FontWeightConverter.cs
- HttpDictionary.cs
- Expander.cs
- MetaModel.cs
- ZipIOCentralDirectoryFileHeader.cs
- RelationshipType.cs
- XsltContext.cs
- Animatable.cs
- IssuedTokensHeader.cs
- DataListComponentEditor.cs
- CodeFieldReferenceExpression.cs
- PerformanceCounterPermissionEntryCollection.cs
- SuspendDesigner.cs
- ClientTarget.cs
- UIAgentRequest.cs
- RemoteWebConfigurationHostStream.cs
- login.cs
- ClosableStream.cs
- TextBoxBase.cs
- ScrollChrome.cs
- DBSchemaRow.cs
- CroppedBitmap.cs
- TagPrefixAttribute.cs
- MasterPageBuildProvider.cs
- SemaphoreSlim.cs
- FlowLayout.cs
- HashHelper.cs
- Focus.cs
- InvalidFilterCriteriaException.cs
- DocumentPageView.cs
- AssemblyFilter.cs
- EtwTrace.cs
- WebPartDisplayModeCancelEventArgs.cs
- GroupItemAutomationPeer.cs
- ApplicationFileParser.cs
- ForwardPositionQuery.cs
- CreateRefExpr.cs
- SpeakInfo.cs
- ColorConvertedBitmap.cs
- ObjectStateManager.cs
- RowUpdatedEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- AbstractDataSvcMapFileLoader.cs
- SkipQueryOptionExpression.cs
- HttpResponseInternalWrapper.cs
- NamespaceList.cs
- dtdvalidator.cs
- DbFunctionCommandTree.cs
- UTF8Encoding.cs
- BamlResourceSerializer.cs
- RegularExpressionValidator.cs
- AnnotationMap.cs
- CompositeCollectionView.cs
- WhitespaceRuleLookup.cs
- RuleInfoComparer.cs
- DragEvent.cs
- SmtpMail.cs
- CommandPlan.cs
- ClaimComparer.cs
- XamlUtilities.cs
- IsolatedStorageSecurityState.cs
- FileDialogCustomPlacesCollection.cs
- XmlHierarchyData.cs
- TranslateTransform3D.cs
- RequestedSignatureDialog.cs
- SqlFileStream.cs
- InteropDesigner.xaml.cs
- KoreanCalendar.cs
- AuthenticationConfig.cs
- VisualStateManager.cs
- MulticastIPAddressInformationCollection.cs
- MultiDataTrigger.cs
- RotateTransform.cs
- DataGridViewSelectedRowCollection.cs
- MaterialCollection.cs
- WebPartsPersonalization.cs
- XmlSchemaAnnotation.cs
- CacheMode.cs
- TextFormatterContext.cs
- SatelliteContractVersionAttribute.cs
- CreateUserErrorEventArgs.cs
- CroppedBitmap.cs
- AnimatedTypeHelpers.cs
- securitycriticaldata.cs
- TextElementEnumerator.cs
- SpellerInterop.cs
- WebPartConnectionsConfigureVerb.cs
- AppDomainFactory.cs
- ScrollItemPattern.cs
- ZipIOExtraFieldElement.cs
- Stream.cs
- TextBoxLine.cs
- ZipFileInfo.cs
- JavaScriptObjectDeserializer.cs
- _LocalDataStoreMgr.cs
- ReferencedType.cs
- ClipboardData.cs
- HtmlControlDesigner.cs
- UniqueID.cs
- Keywords.cs