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
- ContentType.cs
- FilterFactory.cs
- IsolatedStorage.cs
- ChangeDirector.cs
- DataGridViewCheckBoxCell.cs
- EventLogException.cs
- LogRecordSequence.cs
- MetadataSource.cs
- Thickness.cs
- LocalClientSecuritySettings.cs
- ActivityPreviewDesigner.cs
- SecurityPolicySection.cs
- PeerApplicationLaunchInfo.cs
- ResourceSetExpression.cs
- SamlNameIdentifierClaimResource.cs
- NavigationExpr.cs
- AlignmentYValidation.cs
- TraceHandler.cs
- FileDialog.cs
- templategroup.cs
- DesignerTextViewAdapter.cs
- BuildProviderAppliesToAttribute.cs
- TemplatedAdorner.cs
- CompilerHelpers.cs
- oledbmetadatacollectionnames.cs
- State.cs
- MsmqAppDomainProtocolHandler.cs
- CfgParser.cs
- ApplicationId.cs
- ProcessThread.cs
- ConnectionPoolManager.cs
- EventLogLink.cs
- InstanceStoreQueryResult.cs
- SessionStateUtil.cs
- RoleGroupCollection.cs
- HMAC.cs
- ProviderBase.cs
- HasActivatableWorkflowEvent.cs
- RowToParametersTransformer.cs
- MessageEventSubscriptionService.cs
- DataFormats.cs
- InvocationExpression.cs
- ColorAnimationUsingKeyFrames.cs
- UriTemplateEquivalenceComparer.cs
- ArgumentValidation.cs
- RequestCacheEntry.cs
- ValueUnavailableException.cs
- InstanceOwner.cs
- ReachFixedPageSerializerAsync.cs
- ThousandthOfEmRealDoubles.cs
- SafeFileMapViewHandle.cs
- ElementHostAutomationPeer.cs
- ComplexLine.cs
- TileModeValidation.cs
- IntegerValidatorAttribute.cs
- TemplateParser.cs
- LayoutEngine.cs
- HostedBindingBehavior.cs
- EncoderFallback.cs
- StringComparer.cs
- ComboBoxHelper.cs
- ClientConfigurationSystem.cs
- SqlBooleanMismatchVisitor.cs
- ReverseQueryOperator.cs
- _NegoStream.cs
- DataSourceCacheDurationConverter.cs
- DecodeHelper.cs
- BrowserDefinition.cs
- OuterGlowBitmapEffect.cs
- MouseButtonEventArgs.cs
- DelegateHelpers.cs
- EventPrivateKey.cs
- ComponentDispatcherThread.cs
- WebServiceTypeData.cs
- cookiecollection.cs
- WSSecurityTokenSerializer.cs
- Stylus.cs
- PerspectiveCamera.cs
- MessageAction.cs
- MimeReflector.cs
- GifBitmapDecoder.cs
- StoreConnection.cs
- ToolStripGripRenderEventArgs.cs
- DataColumnChangeEvent.cs
- StrokeRenderer.cs
- ConfigViewGenerator.cs
- SqlDependency.cs
- IdnElement.cs
- C14NUtil.cs
- SamlNameIdentifierClaimResource.cs
- DataGridRow.cs
- WebEncodingValidatorAttribute.cs
- ColumnMapProcessor.cs
- CodeDomConfigurationHandler.cs
- SiteMapProvider.cs
- RenameRuleObjectDialog.cs
- SelectionChangedEventArgs.cs
- StaticContext.cs
- ReflectPropertyDescriptor.cs
- BStrWrapper.cs