Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RelatedImageListAttribute.cs
- SafeEventLogReadHandle.cs
- DesignerAttributeInfo.cs
- HttpException.cs
- EdmComplexPropertyAttribute.cs
- AnnotationResource.cs
- SqlOuterApplyReducer.cs
- ContentElement.cs
- WebResourceUtil.cs
- DefaultWorkflowLoaderService.cs
- AffineTransform3D.cs
- SimpleType.cs
- OracleDateTime.cs
- WebPartEventArgs.cs
- EventArgs.cs
- ResolveNextArgumentWorkItem.cs
- JoinElimination.cs
- IItemContainerGenerator.cs
- ReadOnlyNameValueCollection.cs
- FastPropertyAccessor.cs
- diagnosticsswitches.cs
- DataPager.cs
- ColumnMapProcessor.cs
- ClientProtocol.cs
- InputMethodStateChangeEventArgs.cs
- MexHttpBindingElement.cs
- Point3DIndependentAnimationStorage.cs
- Selection.cs
- XMLUtil.cs
- localization.cs
- NameNode.cs
- WhitespaceSignificantCollectionAttribute.cs
- HMAC.cs
- GridView.cs
- ObjectDisposedException.cs
- TraceLevelStore.cs
- WebPartConnectionsCancelEventArgs.cs
- TextTreeObjectNode.cs
- KeyValueConfigurationElement.cs
- KeyFrames.cs
- BrowserDefinition.cs
- Int16Converter.cs
- BooleanAnimationBase.cs
- CommandValueSerializer.cs
- ExpandedWrapper.cs
- keycontainerpermission.cs
- BufferCache.cs
- RenderContext.cs
- ReaderOutput.cs
- TypeBuilder.cs
- COM2PropertyBuilderUITypeEditor.cs
- CompleteWizardStep.cs
- Tracer.cs
- ProxySimple.cs
- XmlSchemaExternal.cs
- DescriptionAttribute.cs
- ControlCollection.cs
- GridViewColumnHeader.cs
- DbMetaDataFactory.cs
- CallSiteOps.cs
- DefaultBindingPropertyAttribute.cs
- CheckableControlBaseAdapter.cs
- MarkupProperty.cs
- OrderedDictionary.cs
- ReferentialConstraint.cs
- AuthenticatingEventArgs.cs
- SystemInfo.cs
- URIFormatException.cs
- AsnEncodedData.cs
- XmlFormatReaderGenerator.cs
- DependencyProperty.cs
- AssemblyAttributes.cs
- SortAction.cs
- SingleAnimationUsingKeyFrames.cs
- PerspectiveCamera.cs
- SizeAnimation.cs
- XmlNodeComparer.cs
- IsolatedStorage.cs
- XmlSchemaObject.cs
- _UriTypeConverter.cs
- CheckBox.cs
- Directory.cs
- EntityDataSource.cs
- ActivityTypeResolver.xaml.cs
- ServiceHostingEnvironment.cs
- HMACMD5.cs
- DeploymentExceptionMapper.cs
- MoveSizeWinEventHandler.cs
- dbenumerator.cs
- EventProxy.cs
- PagePropertiesChangingEventArgs.cs
- ParameterModifier.cs
- DbConnectionOptions.cs
- DataControlHelper.cs
- GenericUriParser.cs
- _HelperAsyncResults.cs
- MenuItemAutomationPeer.cs
- PassportAuthenticationEventArgs.cs
- DictionaryItemsCollection.cs
- TextBox.cs