Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RawStylusInputCustomDataList.cs
- DetailsViewModeEventArgs.cs
- SchemaHelper.cs
- ObjectConverter.cs
- DomainUpDown.cs
- Shape.cs
- PersistChildrenAttribute.cs
- MsiStyleLogWriter.cs
- TextEndOfSegment.cs
- XmlSchemaType.cs
- RecordConverter.cs
- MarkupCompiler.cs
- HostProtectionException.cs
- HMACSHA256.cs
- Schedule.cs
- OdbcTransaction.cs
- NamespaceMapping.cs
- DependentList.cs
- EdmToObjectNamespaceMap.cs
- EmptyQuery.cs
- CmsUtils.cs
- CallbackValidator.cs
- MDIWindowDialog.cs
- ComplexObject.cs
- AspProxy.cs
- RadioButtonRenderer.cs
- querybuilder.cs
- XmlParser.cs
- ComponentEditorForm.cs
- PrintDocument.cs
- DBParameter.cs
- PersonalizableTypeEntry.cs
- VisualBasicDesignerHelper.cs
- Activity.cs
- HttpClientProtocol.cs
- CompoundFileStreamReference.cs
- EventSetter.cs
- SoapObjectInfo.cs
- UserControlCodeDomTreeGenerator.cs
- ArrayTypeMismatchException.cs
- ZipIOExtraFieldPaddingElement.cs
- _BaseOverlappedAsyncResult.cs
- CommandValueSerializer.cs
- DesignOnlyAttribute.cs
- NullableFloatMinMaxAggregationOperator.cs
- BackgroundFormatInfo.cs
- BitmapEffectDrawing.cs
- RowSpanVector.cs
- ProfileGroupSettings.cs
- TCPClient.cs
- SourceSwitch.cs
- WorkflowDesigner.cs
- AsynchronousChannel.cs
- TypeUsageBuilder.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CachedTypeface.cs
- CaseInsensitiveHashCodeProvider.cs
- SvcMapFileLoader.cs
- GroupItemAutomationPeer.cs
- BufferedGraphicsContext.cs
- CustomAttribute.cs
- DesignOnlyAttribute.cs
- BitmapFrame.cs
- CngUIPolicy.cs
- PropertyFilterAttribute.cs
- sqlser.cs
- SafeHandle.cs
- SqlConnectionString.cs
- UIntPtr.cs
- Component.cs
- ParsedAttributeCollection.cs
- ToolboxItemCollection.cs
- VBIdentifierName.cs
- SimpleHandlerBuildProvider.cs
- PrintDialogException.cs
- TrailingSpaceComparer.cs
- DuplexSecurityProtocolFactory.cs
- MatrixTransform.cs
- TemplateParser.cs
- TextHidden.cs
- CodeMemberProperty.cs
- NativeRecognizer.cs
- BaseInfoTable.cs
- ISAPIWorkerRequest.cs
- SiteMap.cs
- controlskin.cs
- HtmlHead.cs
- _AuthenticationState.cs
- XhtmlBasicLiteralTextAdapter.cs
- PackWebRequestFactory.cs
- XmlUtil.cs
- DictionaryEntry.cs
- IISUnsafeMethods.cs
- AnnouncementService.cs
- WebEvents.cs
- EncryptedKey.cs
- TextElementEnumerator.cs
- DesignTimeData.cs
- DataGridViewRow.cs
- DataGrid.cs