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
- TextSelectionHelper.cs
- safelink.cs
- SqlConnectionPoolProviderInfo.cs
- BinaryUtilClasses.cs
- RegexReplacement.cs
- Section.cs
- ToolStripItem.cs
- AssemblyHash.cs
- RegexGroup.cs
- ValidationSummary.cs
- Setter.cs
- ClusterSafeNativeMethods.cs
- DashStyle.cs
- WebPartCollection.cs
- UpdatePanelTrigger.cs
- JavaScriptSerializer.cs
- ClientSettingsStore.cs
- HMACSHA384.cs
- ControllableStoryboardAction.cs
- OpacityConverter.cs
- WorkflowViewStateService.cs
- ContextMenuAutomationPeer.cs
- Section.cs
- SmiMetaData.cs
- ConnectionsZone.cs
- TypeDescriptorFilterService.cs
- PathFigure.cs
- RemoteArgument.cs
- EventItfInfo.cs
- AuthenticationService.cs
- ButtonColumn.cs
- LoginStatusDesigner.cs
- GenericPrincipal.cs
- CancelRequestedRecord.cs
- CellConstant.cs
- WindowsImpersonationContext.cs
- GraphicsContainer.cs
- FrugalList.cs
- FilterException.cs
- ContentOperations.cs
- base64Transforms.cs
- DependencyObjectPropertyDescriptor.cs
- ChannelCacheSettings.cs
- FamilyCollection.cs
- TemplateControl.cs
- FaultContractAttribute.cs
- TypeDelegator.cs
- CrossContextChannel.cs
- FormClosingEvent.cs
- ExpressionBuilder.cs
- SizeFConverter.cs
- AttachmentService.cs
- SerializerWriterEventHandlers.cs
- SecurityKeyIdentifier.cs
- StoragePropertyMapping.cs
- LoginCancelEventArgs.cs
- assemblycache.cs
- Int16.cs
- NetCodeGroup.cs
- MarginCollapsingState.cs
- StringInfo.cs
- StaticResourceExtension.cs
- StreamMarshaler.cs
- LinqExpressionNormalizer.cs
- ObjectParameter.cs
- ManifestSignatureInformation.cs
- DependencyPropertyValueSerializer.cs
- ExpressionBuilderCollection.cs
- Rectangle.cs
- ProfileManager.cs
- TextElementEditingBehaviorAttribute.cs
- AssociationTypeEmitter.cs
- TextChange.cs
- ReceiveParametersContent.cs
- ChildrenQuery.cs
- ExternalFile.cs
- SmiGettersStream.cs
- StreamWriter.cs
- PersonalizationStateInfoCollection.cs
- OwnerDrawPropertyBag.cs
- CustomCategoryAttribute.cs
- StrongTypingException.cs
- EmptyControlCollection.cs
- EmptyEnumerator.cs
- BitmapData.cs
- MimeFormatExtensions.cs
- FileReservationCollection.cs
- ExceptionHandler.cs
- DBNull.cs
- Sql8ConformanceChecker.cs
- NativeMethods.cs
- DetailsViewInsertEventArgs.cs
- QilFunction.cs
- QueryLifecycle.cs
- StrongBox.cs
- GenericWebPart.cs
- TrackingMemoryStreamFactory.cs
- CannotUnloadAppDomainException.cs
- CursorInteropHelper.cs
- UnhandledExceptionEventArgs.cs