Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1305376 / 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] public 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) { if (ticket == null) throw new ArgumentNullException("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
- ToolStripRenderEventArgs.cs
- OSFeature.cs
- SafeThreadHandle.cs
- CacheEntry.cs
- dtdvalidator.cs
- _SSPISessionCache.cs
- XmlSchemaAll.cs
- NullExtension.cs
- RuleSettingsCollection.cs
- DataKeyPropertyAttribute.cs
- RotateTransform3D.cs
- RenderDataDrawingContext.cs
- XmlRawWriterWrapper.cs
- SafeNativeMethodsOther.cs
- StyleSelector.cs
- OleDbReferenceCollection.cs
- SystemResourceKey.cs
- AsyncOperationManager.cs
- DesignTimeParseData.cs
- CryptoConfig.cs
- AssociationTypeEmitter.cs
- SmiEventStream.cs
- DisableDpiAwarenessAttribute.cs
- PrivilegeNotHeldException.cs
- LinearKeyFrames.cs
- MarkupObject.cs
- SubtreeProcessor.cs
- EntitySqlQueryState.cs
- XmlLoader.cs
- AggregateNode.cs
- DeviceContext2.cs
- SqlMetaData.cs
- XPathScanner.cs
- NativeMethods.cs
- ProfileProvider.cs
- TransformPattern.cs
- ScriptReferenceBase.cs
- FieldToken.cs
- BypassElementCollection.cs
- KernelTypeValidation.cs
- RectAnimation.cs
- LabelLiteral.cs
- Inflater.cs
- IList.cs
- ExpressionEditorAttribute.cs
- Message.cs
- AutoSizeComboBox.cs
- XmlSchemaElement.cs
- COM2PropertyPageUITypeConverter.cs
- TTSEngineProxy.cs
- X509ChainElement.cs
- InheritanceAttribute.cs
- PresentationTraceSources.cs
- LinearGradientBrush.cs
- CutCopyPasteHelper.cs
- SafeNativeMethodsMilCoreApi.cs
- MarshalByValueComponent.cs
- DeclaredTypeElementCollection.cs
- VerificationAttribute.cs
- DataSysAttribute.cs
- mediaeventshelper.cs
- TextBox.cs
- JapaneseCalendar.cs
- WSDualHttpSecurity.cs
- StylusEditingBehavior.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CodeTypeReferenceExpression.cs
- EntityDataSourceValidationException.cs
- TextBoxAutomationPeer.cs
- NameTable.cs
- NativeObjectSecurity.cs
- DataViewManager.cs
- RemoteWebConfigurationHostStream.cs
- FileReservationCollection.cs
- FixedLineResult.cs
- XmlQueryTypeFactory.cs
- activationcontext.cs
- PointCollectionConverter.cs
- LinqDataSourceDisposeEventArgs.cs
- HeaderedItemsControl.cs
- ParameterInfo.cs
- followingsibling.cs
- State.cs
- AssemblyBuilder.cs
- WindowsGraphics2.cs
- ArrayList.cs
- Signature.cs
- XmlChildEnumerator.cs
- ResizeGrip.cs
- TypedOperationInfo.cs
- XamlParser.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Privilege.cs
- Parser.cs
- WebPartConnectionsEventArgs.cs
- QueryComponents.cs
- FormatterConverter.cs
- TypeBuilder.cs
- Crypto.cs
- ChangePasswordDesigner.cs