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
- IssuedSecurityTokenProvider.cs
- BinaryFormatter.cs
- ExtensionElement.cs
- MenuEventArgs.cs
- SourceFileBuildProvider.cs
- MessageLoggingFilterTraceRecord.cs
- TreeNodeStyle.cs
- DropDownButton.cs
- securitycriticaldata.cs
- ApplicationId.cs
- CheckBox.cs
- XPathParser.cs
- TextRangeEditLists.cs
- OptimalTextSource.cs
- ListViewCommandEventArgs.cs
- InvalidAsynchronousStateException.cs
- TextWriterTraceListener.cs
- ProviderConnectionPointCollection.cs
- FileUpload.cs
- GridErrorDlg.cs
- SpecularMaterial.cs
- RouteParameter.cs
- QueueAccessMode.cs
- SignHashRequest.cs
- ReadOnlyObservableCollection.cs
- MobileSysDescriptionAttribute.cs
- ByValueEqualityComparer.cs
- WorkflowInlining.cs
- MergeLocalizationDirectives.cs
- TemplateBindingExpressionConverter.cs
- ElementsClipboardData.cs
- InputScope.cs
- DataGridTableCollection.cs
- RegistryPermission.cs
- Function.cs
- NativeMethods.cs
- XmlSchemaCollection.cs
- GeometryModel3D.cs
- ScrollViewer.cs
- RoleGroup.cs
- SQLString.cs
- Grammar.cs
- CodeSnippetCompileUnit.cs
- CounterSampleCalculator.cs
- XPathNodeList.cs
- InkCanvasFeedbackAdorner.cs
- AssociativeAggregationOperator.cs
- GeneralTransformCollection.cs
- NavigationExpr.cs
- RegexWorker.cs
- EnumMember.cs
- Walker.cs
- TypeConverterHelper.cs
- XmlMtomWriter.cs
- Rect.cs
- ConnectionProviderAttribute.cs
- DependencyPropertyKind.cs
- HostedTransportConfigurationManager.cs
- QueueProcessor.cs
- FilePresentation.cs
- PersonalizationState.cs
- AtomServiceDocumentSerializer.cs
- SqlCacheDependencySection.cs
- ServerIdentity.cs
- FormatterServices.cs
- StylusButtonCollection.cs
- BindingMAnagerBase.cs
- PocoEntityKeyStrategy.cs
- UpdateProgress.cs
- FixedFindEngine.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- JsonReaderWriterFactory.cs
- HttpListenerRequest.cs
- ObjectViewQueryResultData.cs
- DrawingBrush.cs
- JsonDeserializer.cs
- ListDictionaryInternal.cs
- ADMembershipProvider.cs
- VirtualizedItemPattern.cs
- SmiMetaDataProperty.cs
- InvalidOleVariantTypeException.cs
- ButtonPopupAdapter.cs
- GeometryConverter.cs
- SmiConnection.cs
- InstanceNormalEvent.cs
- SplineKeyFrames.cs
- DataListComponentEditor.cs
- TextTreeObjectNode.cs
- FileUpload.cs
- DeviceOverridableAttribute.cs
- LinkedList.cs
- Deflater.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SafeLocalAllocation.cs
- DiagnosticsConfiguration.cs
- Pair.cs
- ConvertEvent.cs
- WebPartVerbsEventArgs.cs
- SourceInterpreter.cs
- XmlHierarchyData.cs