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
- ManipulationStartingEventArgs.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- RenderingEventArgs.cs
- KnownBoxes.cs
- ConfigXmlCDataSection.cs
- DataControlReferenceCollection.cs
- AuthenticationSection.cs
- UnionExpr.cs
- PageContent.cs
- StateDesigner.cs
- Window.cs
- AuthenticationException.cs
- SqlMethodTransformer.cs
- Adorner.cs
- RenderDataDrawingContext.cs
- NativeRecognizer.cs
- PriorityChain.cs
- Set.cs
- ToolStripItemTextRenderEventArgs.cs
- ColorMap.cs
- DocComment.cs
- LoadMessageLogger.cs
- DetailsViewInsertedEventArgs.cs
- Attributes.cs
- TextTreePropertyUndoUnit.cs
- SoapReflectionImporter.cs
- ArrayList.cs
- IPEndPoint.cs
- WebScriptServiceHostFactory.cs
- AdornerHitTestResult.cs
- DataListCommandEventArgs.cs
- CodeFieldReferenceExpression.cs
- BindingBase.cs
- DrawItemEvent.cs
- SID.cs
- AutoCompleteStringCollection.cs
- ProtocolsConfigurationEntry.cs
- CodeSnippetTypeMember.cs
- ClientUtils.cs
- ToolTipService.cs
- OracleEncoding.cs
- DiscoveryDocumentSearchPattern.cs
- XamlRtfConverter.cs
- Vector3dCollection.cs
- WindowsListBox.cs
- CacheOutputQuery.cs
- SqlDependencyUtils.cs
- ListViewGroup.cs
- ArgIterator.cs
- bidPrivateBase.cs
- WorkflowMarkupSerializerMapping.cs
- IndexObject.cs
- x509utils.cs
- SoapExtensionStream.cs
- ThemeConfigurationDialog.cs
- ListSortDescription.cs
- DataRecordInfo.cs
- WindowsEditBox.cs
- PageParserFilter.cs
- PropertyTabChangedEvent.cs
- RectAnimationUsingKeyFrames.cs
- GuidelineCollection.cs
- followingquery.cs
- XPathBinder.cs
- SafeNativeMethodsMilCoreApi.cs
- Emitter.cs
- OuterGlowBitmapEffect.cs
- GroupItemAutomationPeer.cs
- XmlNamespaceDeclarationsAttribute.cs
- BitVec.cs
- WebPart.cs
- EntityDataSource.cs
- TransformCollection.cs
- ChangeConflicts.cs
- CacheEntry.cs
- XmlSchemaCompilationSettings.cs
- OpenFileDialog.cs
- ResourceType.cs
- ComponentManagerBroker.cs
- BamlResourceSerializer.cs
- ScriptingAuthenticationServiceSection.cs
- Panel.cs
- XPathExpr.cs
- Delay.cs
- followingsibling.cs
- TraceHandler.cs
- SmiContextFactory.cs
- CalendarButton.cs
- BindingExpressionBase.cs
- CustomValidator.cs
- ModelUtilities.cs
- TimeoutValidationAttribute.cs
- UriTemplateDispatchFormatter.cs
- WindowsAuthenticationEventArgs.cs
- TransactionProxy.cs
- _Connection.cs
- DelegateHelpers.cs
- StatusBarPanelClickEvent.cs
- TransactionInterop.cs
- ServiceOperationWrapper.cs