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
- UserMapPath.cs
- TextInfo.cs
- DataColumnCollection.cs
- BasicKeyConstraint.cs
- EditorPartCollection.cs
- ErrorFormatterPage.cs
- XmlSchemas.cs
- InkPresenterAutomationPeer.cs
- AdornedElementPlaceholder.cs
- MailAddress.cs
- IntSecurity.cs
- MemoryFailPoint.cs
- BezierSegment.cs
- TrackingDataItemValue.cs
- ErrorWebPart.cs
- CreateUserWizardStep.cs
- WorkflowOwnershipException.cs
- SID.cs
- GridViewUpdatedEventArgs.cs
- LayoutEngine.cs
- ObjectPersistData.cs
- ConfigXmlComment.cs
- ElementUtil.cs
- WorkflowMessageEventHandler.cs
- ToolStripKeyboardHandlingService.cs
- DragDeltaEventArgs.cs
- shaperfactoryquerycachekey.cs
- ASCIIEncoding.cs
- GroupJoinQueryOperator.cs
- BooleanFunctions.cs
- FormViewPageEventArgs.cs
- LinqDataView.cs
- RuleInfoComparer.cs
- PropertyRecord.cs
- TextEndOfSegment.cs
- CellConstant.cs
- AmbientLight.cs
- PasswordRecoveryAutoFormat.cs
- StylusLogic.cs
- FocusManager.cs
- OdbcConnectionString.cs
- CustomSignedXml.cs
- EventLogPermission.cs
- SamlNameIdentifierClaimResource.cs
- ApplicationTrust.cs
- MostlySingletonList.cs
- xsdvalidator.cs
- Encoder.cs
- X509Certificate2Collection.cs
- RefType.cs
- InkCanvasSelection.cs
- ChannelRequirements.cs
- InstanceView.cs
- PerformanceCounterTraceRecord.cs
- XmlWriterTraceListener.cs
- KeyEventArgs.cs
- Trigger.cs
- BitmapDownload.cs
- QueryOutputWriter.cs
- FileVersion.cs
- ConfigurationSettings.cs
- ConnectionPointConverter.cs
- HtmlObjectListAdapter.cs
- SqlProviderServices.cs
- SqlMethodAttribute.cs
- DataSvcMapFileSerializer.cs
- AssertSection.cs
- QilTernary.cs
- BigInt.cs
- RequestCacheValidator.cs
- RangeValidator.cs
- JoinElimination.cs
- ZipIOExtraFieldElement.cs
- ByteStack.cs
- SqlResolver.cs
- ResourcesGenerator.cs
- ZipIOCentralDirectoryFileHeader.cs
- RandomNumberGenerator.cs
- TextOnlyOutput.cs
- AutomationElement.cs
- WorkflowMarkupSerializationProvider.cs
- ActiveDocumentEvent.cs
- TableSectionStyle.cs
- HttpApplication.cs
- MultipleCopiesCollection.cs
- ListViewUpdatedEventArgs.cs
- ValueTypeFixupInfo.cs
- _UriSyntax.cs
- Visual3DCollection.cs
- SerializationObjectManager.cs
- XmlHelper.cs
- ThreadExceptionDialog.cs
- ParseNumbers.cs
- FileUtil.cs
- ReferenceSchema.cs
- regiisutil.cs
- Token.cs
- TreeNodeStyleCollection.cs
- CacheAxisQuery.cs
- ArcSegment.cs