Code:
/ FX-1434 / FX-1434 / 1.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
- TextRangeAdaptor.cs
- X509SecurityToken.cs
- JsonSerializer.cs
- brushes.cs
- FormDesigner.cs
- ProcessManager.cs
- TextWriterTraceListener.cs
- ReflectionUtil.cs
- CommandLibraryHelper.cs
- EntitySetBase.cs
- ExternalFile.cs
- X509Utils.cs
- DataSetViewSchema.cs
- SQLUtility.cs
- CorrelationTokenTypeConvertor.cs
- PrintingPermissionAttribute.cs
- OneOf.cs
- EntityDataSourceMemberPath.cs
- dataobject.cs
- FlowDocumentPaginator.cs
- CacheMemory.cs
- FileSystemInfo.cs
- ConfigUtil.cs
- LicenseContext.cs
- QuaternionAnimationBase.cs
- XsdDuration.cs
- NonSerializedAttribute.cs
- OrderingInfo.cs
- ActivityInterfaces.cs
- Timeline.cs
- TypeForwardedToAttribute.cs
- StaticSiteMapProvider.cs
- AudioBase.cs
- GeneralTransformGroup.cs
- BitmapCodecInfo.cs
- XmlStringTable.cs
- ZipIOFileItemStream.cs
- CodeCatchClause.cs
- regiisutil.cs
- SrgsDocumentParser.cs
- HeaderedItemsControl.cs
- Queue.cs
- WebPermission.cs
- BeginStoryboard.cs
- IntSecurity.cs
- OutputCacheModule.cs
- WindowAutomationPeer.cs
- WebServiceAttribute.cs
- FormatPage.cs
- RootProfilePropertySettingsCollection.cs
- RegistryPermission.cs
- PermissionSet.cs
- HttpServerVarsCollection.cs
- SQLInt64Storage.cs
- BindingNavigator.cs
- SystemIcons.cs
- TraversalRequest.cs
- WebServiceTypeData.cs
- Atom10FeedFormatter.cs
- CodeCommentStatement.cs
- ConfigXmlText.cs
- Activity.cs
- Sequence.cs
- OSEnvironmentHelper.cs
- BinaryObjectInfo.cs
- WebPartTransformerCollection.cs
- EventPrivateKey.cs
- FieldBuilder.cs
- ToolStripTextBox.cs
- TraceListeners.cs
- DotAtomReader.cs
- AddInAttribute.cs
- DragDeltaEventArgs.cs
- cookie.cs
- Int16KeyFrameCollection.cs
- SystemIcons.cs
- NativeRightsManagementAPIsStructures.cs
- SmiTypedGetterSetter.cs
- DataGridViewColumnHeaderCell.cs
- EndpointDispatcherTable.cs
- DataGridCellInfo.cs
- DateTimeParse.cs
- HideDisabledControlAdapter.cs
- LoginDesigner.cs
- ZoomingMessageFilter.cs
- SqlDataSourceSelectingEventArgs.cs
- KnowledgeBase.cs
- HttpsHostedTransportConfiguration.cs
- PropertyGridEditorPart.cs
- Point3DAnimationUsingKeyFrames.cs
- ADMembershipUser.cs
- StreamInfo.cs
- IntSecurity.cs
- XappLauncher.cs
- DelayLoadType.cs
- QualificationDataAttribute.cs
- ContentElement.cs
- RegistrationServices.cs
- Bits.cs
- DefinitionProperties.cs