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
- StreamWriter.cs
- followingquery.cs
- TypedTableHandler.cs
- WebPartCatalogCloseVerb.cs
- CharStorage.cs
- FramingDecoders.cs
- SqlTriggerAttribute.cs
- ReachDocumentReferenceSerializer.cs
- TemplateInstanceAttribute.cs
- ElementNotAvailableException.cs
- DataGridViewCellCollection.cs
- SharedPersonalizationStateInfo.cs
- TextServicesCompartmentContext.cs
- HyperLinkStyle.cs
- RegexWorker.cs
- LogSwitch.cs
- OleAutBinder.cs
- GraphicsContainer.cs
- OleDbWrapper.cs
- QuaternionRotation3D.cs
- DataSpaceManager.cs
- MethodCallConverter.cs
- ProjectedSlot.cs
- CodeCommentStatement.cs
- DataGridTablesFactory.cs
- RegularExpressionValidator.cs
- BinaryObjectWriter.cs
- BaseProcessor.cs
- DataListCommandEventArgs.cs
- AffineTransform3D.cs
- _AutoWebProxyScriptHelper.cs
- ExtendedPropertyCollection.cs
- KeyFrames.cs
- UnsafeNativeMethods.cs
- RequestValidator.cs
- WebHttpBinding.cs
- StorageEndPropertyMapping.cs
- FixedLineResult.cs
- NestedContainer.cs
- MetafileHeaderWmf.cs
- CryptoConfig.cs
- DesignerSerializationOptionsAttribute.cs
- PathStreamGeometryContext.cs
- DataSourceSelectArguments.cs
- XmlTypeAttribute.cs
- XmlWellformedWriter.cs
- StorageMappingItemCollection.cs
- WebPartsPersonalizationAuthorization.cs
- RegexInterpreter.cs
- XPathScanner.cs
- WpfGeneratedKnownTypes.cs
- SecUtil.cs
- ping.cs
- ActivityBuilder.cs
- FileSecurity.cs
- CompiledQuery.cs
- RightsManagementLicense.cs
- Pair.cs
- _FtpControlStream.cs
- Model3D.cs
- ProcessProtocolHandler.cs
- SchemaInfo.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- BinaryObjectInfo.cs
- MarkupCompilePass2.cs
- TransformValueSerializer.cs
- CodeNamespace.cs
- InfoCardAsymmetricCrypto.cs
- DeviceContexts.cs
- BrowserCapabilitiesFactory.cs
- ArrayTypeMismatchException.cs
- HtmlInputRadioButton.cs
- DetailsView.cs
- WebServiceData.cs
- RijndaelManagedTransform.cs
- EntityDataSourceMemberPath.cs
- basecomparevalidator.cs
- CategoryNameCollection.cs
- DebugViewWriter.cs
- cryptoapiTransform.cs
- SqlUtils.cs
- Win32Exception.cs
- AttributeSetAction.cs
- DecimalKeyFrameCollection.cs
- CopyOfAction.cs
- CommandDevice.cs
- WorkflowInlining.cs
- DataTableTypeConverter.cs
- FrameDimension.cs
- DataRecordInfo.cs
- WinInet.cs
- _ScatterGatherBuffers.cs
- ImageBrush.cs
- ClaimSet.cs
- PriorityQueue.cs
- ExecutionProperties.cs
- DataGridViewEditingControlShowingEventArgs.cs
- _NegoState.cs
- TempFiles.cs
- BitmapVisualManager.cs