Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Principal / GenericIdentity.cs / 1 / GenericIdentity.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//
// GenericIdentity.cs
//
// A generic identity
//
namespace System.Security.Principal
{
using System.Runtime.Remoting;
using System;
using System.Security.Util;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class GenericIdentity : IIdentity {
private string m_name;
private string m_type;
public GenericIdentity (string name) {
if (name == null)
throw new ArgumentNullException("name");
m_name = name;
m_type = "";
}
public GenericIdentity (string name, string type) {
if (name == null)
throw new ArgumentNullException("name");
if (type == null)
throw new ArgumentNullException("type");
m_name = name;
m_type = type;
}
public virtual string Name {
get {
return m_name;
}
}
public virtual string AuthenticationType {
get {
return m_type;
}
}
public virtual bool IsAuthenticated {
get {
return !m_name.Equals("");
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Roles.cs
- XmlValidatingReader.cs
- ValidationRule.cs
- CalloutQueueItem.cs
- ObjectDataProvider.cs
- ReadOnlyTernaryTree.cs
- altserialization.cs
- WebBrowserContainer.cs
- Preprocessor.cs
- NumberAction.cs
- filewebrequest.cs
- Asn1Utilities.cs
- ErrorsHelper.cs
- TimeoutValidationAttribute.cs
- Int16Animation.cs
- RenderingBiasValidation.cs
- Codec.cs
- ADConnectionHelper.cs
- QuaternionAnimation.cs
- Calendar.cs
- WrappedIUnknown.cs
- Debug.cs
- DeploymentExceptionMapper.cs
- BitmapFrameEncode.cs
- GZipStream.cs
- CaseInsensitiveComparer.cs
- EncryptedKey.cs
- CompositeTypefaceMetrics.cs
- TextTreeNode.cs
- TrackBarRenderer.cs
- ListViewItemCollectionEditor.cs
- Main.cs
- BindingCompleteEventArgs.cs
- UseAttributeSetsAction.cs
- TextMarkerSource.cs
- Container.cs
- DataQuery.cs
- WorkflowTimerService.cs
- SqlClientPermission.cs
- CryptoStream.cs
- ConcurrentBag.cs
- AssemblySettingAttributes.cs
- SecurityState.cs
- OperationGenerator.cs
- SplitContainer.cs
- Transform3D.cs
- FormsIdentity.cs
- Comparer.cs
- ItemContainerProviderWrapper.cs
- TaiwanLunisolarCalendar.cs
- RoleManagerModule.cs
- IUnknownConstantAttribute.cs
- MdImport.cs
- CompensationHandlingFilter.cs
- TriggerActionCollection.cs
- ControlValuePropertyAttribute.cs
- TableLayoutPanelDesigner.cs
- EntityDataSourceSelectingEventArgs.cs
- CookielessHelper.cs
- ISFTagAndGuidCache.cs
- SecurityRuntime.cs
- PasswordTextContainer.cs
- Convert.cs
- BoundsDrawingContextWalker.cs
- ImageMap.cs
- SplineQuaternionKeyFrame.cs
- StateChangeEvent.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- MatrixConverter.cs
- TypeConverter.cs
- ProcessModelSection.cs
- TypeExtensionSerializer.cs
- SerializationStore.cs
- RegexCompilationInfo.cs
- propertyentry.cs
- VisualStateGroup.cs
- VirtualDirectoryMapping.cs
- WebPageTraceListener.cs
- SqlMethods.cs
- PointUtil.cs
- XmlAnyElementAttributes.cs
- DBConnectionString.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebBrowser.cs
- ErrorFormatter.cs
- Normalizer.cs
- SmtpReplyReader.cs
- Section.cs
- VectorCollection.cs
- TransformedBitmap.cs
- CanExecuteRoutedEventArgs.cs
- HttpStreamXmlDictionaryWriter.cs
- DataGridBoundColumn.cs
- DataGridViewComponentPropertyGridSite.cs
- EntityAdapter.cs
- FocusTracker.cs
- GetWinFXPath.cs
- BamlMapTable.cs
- Accessible.cs
- CompositeFontFamily.cs