Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapSource.cs
- IncrementalCompileAnalyzer.cs
- BuildProviderAppliesToAttribute.cs
- Activity.cs
- AttributeExtensions.cs
- ActivityCodeGenerator.cs
- PropertyDescriptor.cs
- DataReceivedEventArgs.cs
- HierarchicalDataSourceConverter.cs
- CodeTypeDeclarationCollection.cs
- HelloMessageCD1.cs
- DataContractSerializerOperationBehavior.cs
- DesignSurfaceServiceContainer.cs
- DataGridParentRows.cs
- EasingQuaternionKeyFrame.cs
- RequiredFieldValidator.cs
- SystemPens.cs
- XmlHierarchicalDataSourceView.cs
- InstanceData.cs
- AnnotationComponentChooser.cs
- ObjectItemCollection.cs
- GridViewActionList.cs
- GenericAuthenticationEventArgs.cs
- HtmlLiteralTextAdapter.cs
- CodeDirectionExpression.cs
- StandardCommands.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- BoundField.cs
- StateFinalizationActivity.cs
- ThemeDirectoryCompiler.cs
- TraceListeners.cs
- CompositeScriptReference.cs
- CommonProperties.cs
- ApplicationHost.cs
- SynchronizationLockException.cs
- HierarchicalDataSourceControl.cs
- XmlDictionary.cs
- ButtonBase.cs
- Internal.cs
- WebPartConnectionsCloseVerb.cs
- XsdDataContractExporter.cs
- XmlAttributeCache.cs
- WSTrustFeb2005.cs
- CodeConditionStatement.cs
- DrawItemEvent.cs
- TextDecorationCollection.cs
- FrameSecurityDescriptor.cs
- IODescriptionAttribute.cs
- LoadRetryHandler.cs
- FormViewPageEventArgs.cs
- RowToFieldTransformer.cs
- ExecutionEngineException.cs
- HttpCacheVary.cs
- MeasurementDCInfo.cs
- PrintControllerWithStatusDialog.cs
- WebPartZone.cs
- MetadataSerializer.cs
- InstanceCompleteException.cs
- UseLicense.cs
- cache.cs
- ValidatorCollection.cs
- ReceiveActivityDesignerTheme.cs
- FlowDocumentReaderAutomationPeer.cs
- UInt32Storage.cs
- SiteMapHierarchicalDataSourceView.cs
- Timer.cs
- ModifierKeysValueSerializer.cs
- FrameAutomationPeer.cs
- ProcessManager.cs
- ListViewContainer.cs
- MembershipSection.cs
- SurrogateEncoder.cs
- DefaultTypeArgumentAttribute.cs
- AvTraceDetails.cs
- DocumentScope.cs
- HtmlInputReset.cs
- SafeWaitHandle.cs
- HWStack.cs
- XmlILAnnotation.cs
- ManipulationDevice.cs
- AutoGeneratedField.cs
- RpcCryptoRequest.cs
- ImageMetadata.cs
- TdsParser.cs
- OutgoingWebResponseContext.cs
- CodeTypeDeclarationCollection.cs
- DataSourceCollectionBase.cs
- SwitchLevelAttribute.cs
- XmlQueryCardinality.cs
- PropertyGeneratedEventArgs.cs
- XsltQilFactory.cs
- DockAndAnchorLayout.cs
- SessionStateSection.cs
- XmlC14NWriter.cs
- DefaultObjectMappingItemCollection.cs
- WSDualHttpSecurityElement.cs
- StrokeSerializer.cs
- ListSortDescription.cs
- SettingsBindableAttribute.cs
- ResourceReferenceKeyNotFoundException.cs