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
- InkCollectionBehavior.cs
- AutomationPeer.cs
- ResourceCategoryAttribute.cs
- KeyConverter.cs
- DataGridViewHitTestInfo.cs
- SizeFConverter.cs
- DataReceivedEventArgs.cs
- LongValidatorAttribute.cs
- ISAPIWorkerRequest.cs
- ClientScriptManager.cs
- NumericPagerField.cs
- CounterSample.cs
- GPStream.cs
- NativeCppClassAttribute.cs
- Size3D.cs
- OperationAbortedException.cs
- WriteableBitmap.cs
- BitmapScalingModeValidation.cs
- OneWayBindingElementImporter.cs
- ClockGroup.cs
- COM2PropertyDescriptor.cs
- QilPatternFactory.cs
- RoleManagerEventArgs.cs
- CodeNamespaceCollection.cs
- MetadataItem_Static.cs
- TransformCollection.cs
- ButtonField.cs
- Range.cs
- ConstructorArgumentAttribute.cs
- TreeNodeStyleCollection.cs
- MSAAEventDispatcher.cs
- ExternalException.cs
- SqlCrossApplyToCrossJoin.cs
- CatalogZone.cs
- ScriptMethodAttribute.cs
- PageRanges.cs
- SmiMetaData.cs
- ProbeMatchesMessageCD1.cs
- TypeNameConverter.cs
- ConstrainedDataObject.cs
- MenuItemCollectionEditor.cs
- HybridDictionary.cs
- UdpDiscoveryEndpointElement.cs
- IdnElement.cs
- PeerEndPoint.cs
- ActivationServices.cs
- DataGridViewCellMouseEventArgs.cs
- SQLBinary.cs
- TextCompositionEventArgs.cs
- UserControlCodeDomTreeGenerator.cs
- TreeViewImageIndexConverter.cs
- VisualCollection.cs
- IDispatchConstantAttribute.cs
- ArrayListCollectionBase.cs
- RenderData.cs
- translator.cs
- WsdlServiceChannelBuilder.cs
- TextBox.cs
- BroadcastEventHelper.cs
- DES.cs
- HttpApplication.cs
- SqlXmlStorage.cs
- EventLogPermissionAttribute.cs
- HtmlInputHidden.cs
- ImageListStreamer.cs
- WindowsTreeView.cs
- PostBackOptions.cs
- CodeThrowExceptionStatement.cs
- XmlWrappingWriter.cs
- activationcontext.cs
- LinqExpressionNormalizer.cs
- ADMembershipProvider.cs
- SamlAssertionKeyIdentifierClause.cs
- PriorityBindingExpression.cs
- FusionWrap.cs
- BitmapEffectInput.cs
- HostSecurityManager.cs
- UserControl.cs
- TextClipboardData.cs
- RepeaterItemEventArgs.cs
- Error.cs
- ProxyAttribute.cs
- UiaCoreApi.cs
- Focus.cs
- PolicyAssertionCollection.cs
- XmlElementElementCollection.cs
- LogicalMethodInfo.cs
- DelegateTypeInfo.cs
- DispatcherOperation.cs
- HttpServerVarsCollection.cs
- TextServicesCompartmentEventSink.cs
- DataViewListener.cs
- MessageSecurityProtocolFactory.cs
- ListViewCancelEventArgs.cs
- XmlRawWriter.cs
- SqlUDTStorage.cs
- SessionStateModule.cs
- SspiSafeHandles.cs
- MessageQueue.cs
- Internal.cs