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
- DrawListViewColumnHeaderEventArgs.cs
- GetParentChain.cs
- XmlChildNodes.cs
- PlanCompilerUtil.cs
- XmlChildNodes.cs
- EdmComplexTypeAttribute.cs
- LoadedEvent.cs
- WorkItem.cs
- BoundPropertyEntry.cs
- HtmlTableCellCollection.cs
- HtmlElementErrorEventArgs.cs
- WmpBitmapDecoder.cs
- CompositeDuplexBindingElement.cs
- Storyboard.cs
- ErrorTolerantObjectWriter.cs
- TextBlock.cs
- BinaryObjectReader.cs
- XmlWrappingReader.cs
- DynamicUpdateCommand.cs
- OdbcConnectionFactory.cs
- FilterElement.cs
- ConnectionInterfaceCollection.cs
- PersonalizationState.cs
- NodeCounter.cs
- LinkedResource.cs
- FixedSOMTable.cs
- OperationInfoBase.cs
- SelectionListComponentEditor.cs
- PointCollection.cs
- DataControlReference.cs
- XMLDiffLoader.cs
- RijndaelManaged.cs
- ErrorWrapper.cs
- CompiledXpathExpr.cs
- EntityWithChangeTrackerStrategy.cs
- TextSegment.cs
- BeginStoryboard.cs
- ChoiceConverter.cs
- ViewgenGatekeeper.cs
- EntitySqlQueryCacheEntry.cs
- QueryCacheKey.cs
- EndpointConfigContainer.cs
- Timeline.cs
- __ComObject.cs
- LogicalExpressionTypeConverter.cs
- NativeRecognizer.cs
- Inflater.cs
- DirtyTextRange.cs
- KnownTypeAttribute.cs
- TcpTransportElement.cs
- SourceFilter.cs
- XmlStreamNodeWriter.cs
- DataGridViewRowEventArgs.cs
- AtlasWeb.Designer.cs
- SqlCachedBuffer.cs
- DbConnectionPoolOptions.cs
- RecognizerInfo.cs
- StorageMappingFragment.cs
- XPathAxisIterator.cs
- ContextMarshalException.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- InlineCollection.cs
- TableCell.cs
- filewebresponse.cs
- XmlDocumentType.cs
- WsatTransactionHeader.cs
- DataTableReaderListener.cs
- WebHttpBehavior.cs
- EntitySetBaseCollection.cs
- _BufferOffsetSize.cs
- StylusDevice.cs
- InputBindingCollection.cs
- SaveCardRequest.cs
- FormatVersion.cs
- SafeFileMappingHandle.cs
- X509PeerCertificateAuthentication.cs
- Run.cs
- SignatureToken.cs
- DataListItemCollection.cs
- XmlRawWriter.cs
- LinkUtilities.cs
- TransformedBitmap.cs
- Monitor.cs
- DataServices.cs
- String.cs
- XmlUTF8TextReader.cs
- FileDialog_Vista.cs
- RoleGroupCollection.cs
- JsonByteArrayDataContract.cs
- XmlBinaryReaderSession.cs
- StylusDownEventArgs.cs
- KernelTypeValidation.cs
- LinkConverter.cs
- X509CertificateClaimSet.cs
- unsafenativemethodsother.cs
- QuestionEventArgs.cs
- RemoveStoryboard.cs
- ObjectListDataBindEventArgs.cs
- ParserContext.cs
- TextHintingModeValidation.cs