Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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("");
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathChildIterator.cs
- CommandTreeTypeHelper.cs
- EditableRegion.cs
- DefaultValueTypeConverter.cs
- EmptyEnumerator.cs
- WebScriptServiceHost.cs
- ReferenceService.cs
- XMLSyntaxException.cs
- XmlHierarchicalDataSourceView.cs
- DataSourceProvider.cs
- InputReferenceExpression.cs
- XPathScanner.cs
- Queue.cs
- Vector3DAnimationBase.cs
- CssStyleCollection.cs
- HttpCookie.cs
- _AcceptOverlappedAsyncResult.cs
- CounterSampleCalculator.cs
- DbSetClause.cs
- EdmValidator.cs
- DataBoundControlParameterTarget.cs
- PageOutputQuality.cs
- StylusPlugin.cs
- StreamInfo.cs
- SpeechRecognizer.cs
- ViewLoader.cs
- Margins.cs
- HttpChannelHelpers.cs
- RegexWriter.cs
- CompositeControl.cs
- OrthographicCamera.cs
- LazyTextWriterCreator.cs
- EventLogEntry.cs
- TextElementCollectionHelper.cs
- Variant.cs
- PropertyCondition.cs
- DataColumnMappingCollection.cs
- CollectionEditorDialog.cs
- TableDetailsCollection.cs
- Zone.cs
- GradientBrush.cs
- PhysicalAddress.cs
- WebPartCollection.cs
- RegexCode.cs
- MaterialGroup.cs
- lengthconverter.cs
- SiteMapNodeCollection.cs
- CommandHelper.cs
- ExpressionPrefixAttribute.cs
- XmlRawWriter.cs
- SrgsGrammar.cs
- MetadataCache.cs
- XsdDuration.cs
- MarshalByRefObject.cs
- EntityDataSourceDesigner.cs
- ExecutionEngineException.cs
- MarkupObject.cs
- CodeAttributeDeclaration.cs
- FixedMaxHeap.cs
- DataGridViewBand.cs
- InternalConfigSettingsFactory.cs
- Region.cs
- TableItemStyle.cs
- WorkflowDebuggerSteppingAttribute.cs
- NavigatorOutput.cs
- TagElement.cs
- SecurityCapabilities.cs
- Size.cs
- MasterPageParser.cs
- PersonalizationProviderCollection.cs
- Typography.cs
- CustomLineCap.cs
- GeometryModel3D.cs
- Aggregates.cs
- HostingEnvironmentSection.cs
- Bold.cs
- SymmetricKey.cs
- WsdlBuildProvider.cs
- UiaCoreTypesApi.cs
- DefaultPropertyAttribute.cs
- Border.cs
- TableCell.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- PersonalizationDictionary.cs
- TypeUnloadedException.cs
- EncryptedHeader.cs
- UrlMappingsSection.cs
- CustomErrorCollection.cs
- shaper.cs
- TemplateBuilder.cs
- _DigestClient.cs
- EnumConverter.cs
- OutputCacheSettings.cs
- ConfigurationValue.cs
- PreservationFileWriter.cs
- OledbConnectionStringbuilder.cs
- CodeAssignStatement.cs
- Debug.cs
- QilNode.cs
- TabControlEvent.cs