Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1305376 / 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] public 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) { if (ticket == null) throw new ArgumentNullException("ticket"); _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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] public 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) { if (ticket == null) throw new ArgumentNullException("ticket"); _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2FontConverter.cs
- Encoder.cs
- MultiBinding.cs
- PageCodeDomTreeGenerator.cs
- FixedBufferAttribute.cs
- ResourceReferenceExpressionConverter.cs
- AssemblyBuilderData.cs
- AliasExpr.cs
- ClonableStack.cs
- DoWhile.cs
- XmlQueryStaticData.cs
- SqlOuterApplyReducer.cs
- LineServicesCallbacks.cs
- LinkArea.cs
- ListControlConvertEventArgs.cs
- NameObjectCollectionBase.cs
- HitTestParameters3D.cs
- InfoCardSchemas.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PhoneCall.cs
- HostSecurityManager.cs
- ConfigXmlDocument.cs
- GridLengthConverter.cs
- TextAdaptor.cs
- FormattedText.cs
- HttpWebResponse.cs
- WindowsFormsLinkLabel.cs
- DateTimeFormat.cs
- SecuritySessionServerSettings.cs
- MenuItemStyleCollection.cs
- ImageAttributes.cs
- PolyBezierSegmentFigureLogic.cs
- ProtocolsSection.cs
- BitmapInitialize.cs
- COM2EnumConverter.cs
- HttpListenerContext.cs
- DataGridViewAdvancedBorderStyle.cs
- InheritanceContextChangedEventManager.cs
- SiteMapProvider.cs
- ContainerTracking.cs
- SqlXmlStorage.cs
- FactoryGenerator.cs
- ContextMenuAutomationPeer.cs
- SqlDataSourceSelectingEventArgs.cs
- CardSpaceException.cs
- BaseResourcesBuildProvider.cs
- QilIterator.cs
- SamlAuthorizationDecisionStatement.cs
- StretchValidation.cs
- DesignerVerbCollection.cs
- CodeVariableDeclarationStatement.cs
- ControlBuilder.cs
- Transform.cs
- HttpCachePolicyWrapper.cs
- MessageLogTraceRecord.cs
- WebInvokeAttribute.cs
- BamlRecordReader.cs
- FixedSOMImage.cs
- HtmlInputPassword.cs
- CodeTypeDeclaration.cs
- SqlXmlStorage.cs
- GridSplitter.cs
- VectorCollection.cs
- OutKeywords.cs
- PlanCompiler.cs
- ConfigurationLocationCollection.cs
- IssuedSecurityTokenParameters.cs
- AccessorTable.cs
- Converter.cs
- PagesSection.cs
- HtmlFormWrapper.cs
- MessageBox.cs
- Popup.cs
- XsltException.cs
- DataControlButton.cs
- SuppressMergeCheckAttribute.cs
- FormConverter.cs
- TTSEvent.cs
- ClientBuildManager.cs
- ParameterInfo.cs
- ToolStripItemCollection.cs
- CopyOnWriteList.cs
- TypeBuilder.cs
- ColumnTypeConverter.cs
- _RegBlobWebProxyDataBuilder.cs
- QueryExecutionOption.cs
- WorkflowApplicationEventArgs.cs
- ControlsConfig.cs
- DataListCommandEventArgs.cs
- ConfigXmlElement.cs
- ISFClipboardData.cs
- RangeValuePatternIdentifiers.cs
- Separator.cs
- DetailsViewModeEventArgs.cs
- WebControlParameterProxy.cs
- SqlDelegatedTransaction.cs
- QilBinary.cs
- Wizard.cs
- QuotedStringWriteStateInfo.cs
- ProcessHostMapPath.cs