Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Substitution.cs
- NotifyIcon.cs
- CodeDelegateCreateExpression.cs
- TailPinnedEventArgs.cs
- QilReplaceVisitor.cs
- ExpressionPrinter.cs
- _NegotiateClient.cs
- GlyphsSerializer.cs
- ConfigPathUtility.cs
- FormClosingEvent.cs
- UnionCodeGroup.cs
- CollectionChangedEventManager.cs
- TextTreeTextElementNode.cs
- DbProviderManifest.cs
- DoubleLinkListEnumerator.cs
- FormViewDeleteEventArgs.cs
- CacheOutputQuery.cs
- DataGridToolTip.cs
- SystemIPv4InterfaceProperties.cs
- SmtpSection.cs
- HtmlValidatorAdapter.cs
- BStrWrapper.cs
- DeflateEmulationStream.cs
- CodeDelegateCreateExpression.cs
- BorderGapMaskConverter.cs
- TextElementCollection.cs
- VirtualPath.cs
- PropertyReferenceSerializer.cs
- XPathNodePointer.cs
- ACL.cs
- UnsafeNativeMethods.cs
- CategoryAttribute.cs
- DSASignatureDeformatter.cs
- ScriptReferenceEventArgs.cs
- StaticExtension.cs
- ProviderCollection.cs
- PermissionListSet.cs
- ConditionalWeakTable.cs
- SecurityKeyIdentifier.cs
- SqlDataSourceCache.cs
- DataBindingHandlerAttribute.cs
- ChildrenQuery.cs
- LambdaCompiler.ControlFlow.cs
- TextTreeTextNode.cs
- SqlNotificationRequest.cs
- QueryRewriter.cs
- GridEntryCollection.cs
- PackageDigitalSignature.cs
- xdrvalidator.cs
- ProtocolsSection.cs
- KnownTypesProvider.cs
- Compiler.cs
- StringCollection.cs
- MenuBindingsEditorForm.cs
- CipherData.cs
- SqlIdentifier.cs
- RegexRunnerFactory.cs
- QueueProcessor.cs
- DynamicResourceExtension.cs
- EditingCommands.cs
- AstNode.cs
- DataGridRow.cs
- StandardOleMarshalObject.cs
- DrawingBrush.cs
- Configuration.cs
- SynchronizedInputHelper.cs
- CodeConstructor.cs
- SafeNativeMethods.cs
- HtmlElement.cs
- DBNull.cs
- FileUtil.cs
- ScrollChangedEventArgs.cs
- MemberRelationshipService.cs
- Funcletizer.cs
- SqlFacetAttribute.cs
- AddInIpcChannel.cs
- DocumentOrderQuery.cs
- BaseContextMenu.cs
- Item.cs
- NegationPusher.cs
- BamlTreeMap.cs
- ExpressionTable.cs
- AbsoluteQuery.cs
- DefaultEvaluationContext.cs
- WebPartConnectionsConnectVerb.cs
- SynchronizationLockException.cs
- CaseStatement.cs
- CookieHandler.cs
- CodeThrowExceptionStatement.cs
- EventLogLink.cs
- VirtualDirectoryMappingCollection.cs
- XsdCachingReader.cs
- DataGridHeaderBorder.cs
- XmlAttributeOverrides.cs
- UnmanagedMemoryStreamWrapper.cs
- InputDevice.cs
- PlanCompilerUtil.cs
- TextBoxRenderer.cs
- recordstatefactory.cs
- EpmCustomContentDeSerializer.cs