Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SurrogateEncoder.cs
- ParameterCollection.cs
- UserPersonalizationStateInfo.cs
- LogReserveAndAppendState.cs
- TextEditorMouse.cs
- TemplatedWizardStep.cs
- StoreContentChangedEventArgs.cs
- AudioFormatConverter.cs
- SapiInterop.cs
- RequestSecurityTokenResponseCollection.cs
- NegotiationTokenAuthenticatorState.cs
- PersonalizationProviderHelper.cs
- AnnotationAdorner.cs
- InkSerializer.cs
- ConfigurationManagerInternalFactory.cs
- IMembershipProvider.cs
- Permission.cs
- Span.cs
- ToolBarButtonClickEvent.cs
- GenericEnumConverter.cs
- ElementAction.cs
- __TransparentProxy.cs
- Resources.Designer.cs
- safesecurityhelperavalon.cs
- CircleHotSpot.cs
- ManagedCodeMarkers.cs
- ScriptingProfileServiceSection.cs
- DatePickerDateValidationErrorEventArgs.cs
- Binding.cs
- PropertyNames.cs
- EntityDataSourceWrapperCollection.cs
- XmlNodeList.cs
- InternalBufferOverflowException.cs
- CuspData.cs
- TreeView.cs
- PackageRelationship.cs
- TransformerConfigurationWizardBase.cs
- EventMappingSettingsCollection.cs
- CompositeFontInfo.cs
- AdCreatedEventArgs.cs
- _LazyAsyncResult.cs
- SqlSupersetValidator.cs
- DriveInfo.cs
- XmlAtomicValue.cs
- IOThreadTimer.cs
- ObjectStateEntryDbDataRecord.cs
- SafeNativeMethods.cs
- EventLogPermissionEntryCollection.cs
- dataobject.cs
- DependencyObjectCodeDomSerializer.cs
- MachineKeyConverter.cs
- PauseStoryboard.cs
- CompoundFileStorageReference.cs
- ExponentialEase.cs
- SafePEFileHandle.cs
- X509RawDataKeyIdentifierClause.cs
- AssociationSet.cs
- TripleDES.cs
- IndexerHelper.cs
- XmlDataProvider.cs
- CaretElement.cs
- CacheMode.cs
- SmiRequestExecutor.cs
- EntityDataSourceContextCreatedEventArgs.cs
- Error.cs
- SizeAnimationBase.cs
- ArrayConverter.cs
- TransactionFlowBindingElementImporter.cs
- JpegBitmapEncoder.cs
- SubMenuStyleCollection.cs
- EllipseGeometry.cs
- RotationValidation.cs
- ByteViewer.cs
- XsltContext.cs
- Point3D.cs
- UIElementHelper.cs
- VarInfo.cs
- DataGridRow.cs
- XmlSiteMapProvider.cs
- SafeHandles.cs
- CheckBoxBaseAdapter.cs
- CodeActivity.cs
- BitmapPalettes.cs
- BitSet.cs
- DocumentCollection.cs
- AutoGeneratedField.cs
- FlowStep.cs
- Pkcs9Attribute.cs
- HierarchicalDataSourceDesigner.cs
- HScrollBar.cs
- DispatcherObject.cs
- ByteStreamMessageEncodingElement.cs
- Int64.cs
- AutomationProperties.cs
- XmlQueryContext.cs
- XmlWriter.cs
- CodeAttributeDeclarationCollection.cs
- MarshalByValueComponent.cs
- UpdatableGenericsFeature.cs
- HtmlTitle.cs