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
- EmbeddedObject.cs
- BrowserDefinitionCollection.cs
- BaseServiceProvider.cs
- TemplateNameScope.cs
- SqlCommandBuilder.cs
- Type.cs
- NativeMethods.cs
- PasswordRecovery.cs
- PanelStyle.cs
- XmlWrappingReader.cs
- SerialReceived.cs
- ListViewDeleteEventArgs.cs
- ManipulationPivot.cs
- MarkupObject.cs
- FixedTextBuilder.cs
- AnnotationDocumentPaginator.cs
- Icon.cs
- UnsafeNativeMethods.cs
- VirtualPathProvider.cs
- BatchParser.cs
- ConditionalBranch.cs
- SqlFormatter.cs
- Helpers.cs
- MessageBox.cs
- DesignerSerializationOptionsAttribute.cs
- StringAnimationBase.cs
- XmlMtomReader.cs
- LabelAutomationPeer.cs
- Delegate.cs
- Cursor.cs
- DataGridViewRowPostPaintEventArgs.cs
- TypeInfo.cs
- CheckBoxFlatAdapter.cs
- TextSelection.cs
- DataProtection.cs
- ListViewItem.cs
- DispatcherHookEventArgs.cs
- activationcontext.cs
- XmlBinaryWriter.cs
- ClaimSet.cs
- MenuCommand.cs
- ListViewItemSelectionChangedEvent.cs
- Screen.cs
- WebProxyScriptElement.cs
- CursorConverter.cs
- OdbcFactory.cs
- IPEndPoint.cs
- JsonClassDataContract.cs
- XPathItem.cs
- WebControlToolBoxItem.cs
- ListViewItem.cs
- SQLDateTimeStorage.cs
- DeflateStream.cs
- DispatcherHookEventArgs.cs
- WindowsMenu.cs
- MessageFormatterConverter.cs
- CacheMemory.cs
- MemoryMappedView.cs
- VarRefManager.cs
- ReaderWriterLockWrapper.cs
- Positioning.cs
- SectionUpdates.cs
- URIFormatException.cs
- IPHostEntry.cs
- Part.cs
- WorkflowTimerService.cs
- ComponentDispatcher.cs
- _UncName.cs
- PropertyChangeTracker.cs
- SecurityTokenResolver.cs
- ComNativeDescriptor.cs
- IOThreadScheduler.cs
- ParsedAttributeCollection.cs
- ObjectListCommandEventArgs.cs
- AdRotator.cs
- ListBindableAttribute.cs
- ConnectionStringSettings.cs
- ToolStripStatusLabel.cs
- TrackingParticipant.cs
- ObjectHandle.cs
- SelectionUIService.cs
- CreateUserWizard.cs
- FormsAuthenticationCredentials.cs
- DataGridViewSelectedCellCollection.cs
- IisTraceWebEventProvider.cs
- _IPv4Address.cs
- DictionaryContent.cs
- DBCommand.cs
- InkCanvasSelection.cs
- GroupDescription.cs
- ViewManager.cs
- UriTemplateDispatchFormatter.cs
- TableDetailsCollection.cs
- RowParagraph.cs
- SiteIdentityPermission.cs
- ComboBoxRenderer.cs
- precedingsibling.cs
- FastEncoderWindow.cs
- ToolStripDropDown.cs
- FileSystemInfo.cs