Code:
/ DotNET / DotNET / 8.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
- IgnoreSection.cs
- ObjectToIdCache.cs
- OutputScope.cs
- SpecularMaterial.cs
- TextContainerChangedEventArgs.cs
- EntityTypeEmitter.cs
- HandlerFactoryCache.cs
- XmlSerializerAssemblyAttribute.cs
- EntityTypeEmitter.cs
- ExclusiveTcpTransportManager.cs
- XmlUtilWriter.cs
- ActivityPropertyReference.cs
- InputScopeAttribute.cs
- mediapermission.cs
- DataViewManagerListItemTypeDescriptor.cs
- securitycriticaldataClass.cs
- LayoutTableCell.cs
- TaskScheduler.cs
- WebPartEventArgs.cs
- XmlRawWriterWrapper.cs
- ComponentResourceKey.cs
- StyleBamlRecordReader.cs
- CmsInterop.cs
- DoubleAnimation.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- HashMembershipCondition.cs
- RunClient.cs
- HeaderLabel.cs
- BuildResultCache.cs
- ReferenceConverter.cs
- BindingContext.cs
- PeerCollaboration.cs
- List.cs
- MailDefinitionBodyFileNameEditor.cs
- DataGridViewControlCollection.cs
- RtType.cs
- PropertyEmitter.cs
- IntegerValidator.cs
- CrossAppDomainChannel.cs
- StsCommunicationException.cs
- XhtmlConformanceSection.cs
- TabControlEvent.cs
- DiscoveryClientProtocol.cs
- VariableElement.cs
- AdapterUtil.cs
- OleDbEnumerator.cs
- RectIndependentAnimationStorage.cs
- RawTextInputReport.cs
- Int16Converter.cs
- SiteMapDataSource.cs
- EncoderFallback.cs
- ToolStripPanel.cs
- GlyphsSerializer.cs
- NoneExcludedImageIndexConverter.cs
- XPathDocument.cs
- StateElement.cs
- SchemaHelper.cs
- DBCommandBuilder.cs
- HttpDigestClientElement.cs
- QilValidationVisitor.cs
- ProxyGenerationError.cs
- SeverityFilter.cs
- StringAnimationUsingKeyFrames.cs
- Documentation.cs
- OleDbConnectionInternal.cs
- WindowsUpDown.cs
- AnonymousIdentificationModule.cs
- OleDbDataAdapter.cs
- ConsumerConnectionPoint.cs
- UInt16Storage.cs
- XmlDictionaryReaderQuotas.cs
- ReservationNotFoundException.cs
- ExpanderAutomationPeer.cs
- CustomAttributeFormatException.cs
- StorageInfo.cs
- PathSegment.cs
- CommandValueSerializer.cs
- ImageListDesigner.cs
- Label.cs
- BamlResourceContent.cs
- PublishLicense.cs
- TaskFileService.cs
- SizeAnimationUsingKeyFrames.cs
- TreeNodeEventArgs.cs
- PersonalizationStateInfoCollection.cs
- PolygonHotSpot.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- rsa.cs
- EnumerableRowCollection.cs
- MemberRestriction.cs
- PriorityChain.cs
- TypeUnloadedException.cs
- DateTimeFormatInfoScanner.cs
- StateChangeEvent.cs
- IntegerValidator.cs
- HttpProfileGroupBase.cs
- DataGridViewLayoutData.cs
- IdnElement.cs
- FilePrompt.cs
- CodePropertyReferenceExpression.cs