Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FormViewDeletedEventArgs.cs
- MessageDecoder.cs
- SqlRowUpdatingEvent.cs
- StdValidatorsAndConverters.cs
- SqlVersion.cs
- RelationshipConverter.cs
- X509Utils.cs
- SafeRightsManagementSessionHandle.cs
- DataErrorValidationRule.cs
- PackageDigitalSignature.cs
- ProfilePropertySettingsCollection.cs
- DrawingCollection.cs
- _emptywebproxy.cs
- LogicalExpressionTypeConverter.cs
- InvalidPrinterException.cs
- OutputScope.cs
- SerializerDescriptor.cs
- QilCloneVisitor.cs
- DocumentGridContextMenu.cs
- HttpProfileGroupBase.cs
- DbXmlEnabledProviderManifest.cs
- MemberJoinTreeNode.cs
- SmtpLoginAuthenticationModule.cs
- RuleRefElement.cs
- ImageMap.cs
- XmlCharCheckingWriter.cs
- _SpnDictionary.cs
- Setter.cs
- SendSecurityHeader.cs
- AmbientLight.cs
- WebBrowserNavigatingEventHandler.cs
- EventlogProvider.cs
- RelationshipType.cs
- TypeNameConverter.cs
- FrameSecurityDescriptor.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ThemeableAttribute.cs
- ComponentConverter.cs
- Site.cs
- DescendantBaseQuery.cs
- DataGridTextBoxColumn.cs
- SaveRecipientRequest.cs
- ApplicationSecurityManager.cs
- ConfigurationManagerHelperFactory.cs
- ManipulationCompletedEventArgs.cs
- WizardForm.cs
- XsltConvert.cs
- ValidatedControlConverter.cs
- ConvertTextFrag.cs
- TablePattern.cs
- GlyphTypeface.cs
- XmlSortKey.cs
- TextEndOfParagraph.cs
- X509Certificate2Collection.cs
- UserControlParser.cs
- SuppressIldasmAttribute.cs
- SplineKeyFrames.cs
- StringAnimationUsingKeyFrames.cs
- validation.cs
- LinqDataView.cs
- ChangePasswordDesigner.cs
- Misc.cs
- BulletedList.cs
- InternalConfigSettingsFactory.cs
- ScriptMethodAttribute.cs
- FontTypeConverter.cs
- MsmqMessage.cs
- RowToFieldTransformer.cs
- ResourceExpressionBuilder.cs
- SID.cs
- ComNativeDescriptor.cs
- PtsCache.cs
- Enum.cs
- CodeDomSerializationProvider.cs
- StructuralComparisons.cs
- ButtonField.cs
- CriticalFinalizerObject.cs
- ModuleElement.cs
- OdbcConnection.cs
- BreakSafeBase.cs
- DataControlCommands.cs
- odbcmetadatacolumnnames.cs
- Composition.cs
- StylusPointProperties.cs
- ToolStripGrip.cs
- SafeCryptoHandles.cs
- FontStyles.cs
- ListParaClient.cs
- CreateBookmarkScope.cs
- QueryStringParameter.cs
- SmtpMail.cs
- LinearGradientBrush.cs
- MgmtConfigurationRecord.cs
- ClipboardData.cs
- ConfigurationSettings.cs
- ProjectedSlot.cs
- Stacktrace.cs
- ConsoleCancelEventArgs.cs
- ComponentGuaranteesAttribute.cs
- DockPanel.cs