Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Knowncolors.cs
- odbcmetadatacolumnnames.cs
- StrokeFIndices.cs
- ValueTypeFixupInfo.cs
- DataGridTablesFactory.cs
- Array.cs
- SafeLibraryHandle.cs
- WebPartVerb.cs
- ModuleBuilder.cs
- TraceHelpers.cs
- ExecutionPropertyManager.cs
- Matrix.cs
- EntityTransaction.cs
- Help.cs
- ReferenceConverter.cs
- ItemPager.cs
- HostExecutionContextManager.cs
- Timer.cs
- _DisconnectOverlappedAsyncResult.cs
- BufferedGraphics.cs
- HttpServerChannel.cs
- HostProtectionException.cs
- TextStore.cs
- RepeaterCommandEventArgs.cs
- bindurihelper.cs
- ApplicationId.cs
- returneventsaver.cs
- Help.cs
- XmlSchemaSimpleTypeUnion.cs
- ComponentChangingEvent.cs
- VariableModifiersHelper.cs
- ToolStripPanel.cs
- DateTimeConverter.cs
- SqlBuilder.cs
- KeyConstraint.cs
- DispatcherExceptionEventArgs.cs
- LinkUtilities.cs
- _HeaderInfo.cs
- AppDomainProtocolHandler.cs
- InputMethodStateTypeInfo.cs
- PeerDefaultCustomResolverClient.cs
- RefreshEventArgs.cs
- TrackingProfileSerializer.cs
- LogAppendAsyncResult.cs
- CallbackValidator.cs
- BinHexEncoder.cs
- GeometryHitTestParameters.cs
- AuthStoreRoleProvider.cs
- WebPartVerbsEventArgs.cs
- FunctionImportElement.cs
- LinqDataSource.cs
- DiscriminatorMap.cs
- Manipulation.cs
- Literal.cs
- WebPartEditorCancelVerb.cs
- PrivilegedConfigurationManager.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- MemberDescriptor.cs
- AsyncOperationContext.cs
- ClientSettingsSection.cs
- QueryNode.cs
- ReferencedAssembly.cs
- PasswordDeriveBytes.cs
- OutputCache.cs
- PersonalizationStateInfo.cs
- DebugController.cs
- InstanceDescriptor.cs
- CustomError.cs
- sqlcontext.cs
- MatrixUtil.cs
- TrackingServices.cs
- SemanticResolver.cs
- Blend.cs
- Pkcs9Attribute.cs
- JsonDataContract.cs
- MinimizableAttributeTypeConverter.cs
- DynamicRendererThreadManager.cs
- EntitySqlQueryState.cs
- DynamicVirtualDiscoSearcher.cs
- EventDescriptor.cs
- AssociationEndMember.cs
- FixedSOMLineCollection.cs
- CodeCompileUnit.cs
- StatusStrip.cs
- GroupQuery.cs
- InProcStateClientManager.cs
- WebPartConnectionsConnectVerb.cs
- Queue.cs
- RadioButtonRenderer.cs
- EdgeProfileValidation.cs
- SimpleMailWebEventProvider.cs
- RectConverter.cs
- AuthenticationManager.cs
- FixedPageProcessor.cs
- CapabilitiesRule.cs
- WindowsListViewGroupHelper.cs
- MachineKeySection.cs
- coordinatorfactory.cs
- NotifyInputEventArgs.cs
- DecimalKeyFrameCollection.cs