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
- rsa.cs
- PaperSource.cs
- WindowsFormsSectionHandler.cs
- CuspData.cs
- TypeFieldSchema.cs
- CompensationExtension.cs
- Splitter.cs
- IPEndPoint.cs
- BaseTemplateBuildProvider.cs
- SecurityResources.cs
- ContainerControl.cs
- IIS7UserPrincipal.cs
- WebHttpDispatchOperationSelector.cs
- SafeRightsManagementEnvironmentHandle.cs
- BoolExpression.cs
- NumberSubstitution.cs
- BinaryWriter.cs
- Parameter.cs
- JpegBitmapEncoder.cs
- BitmapPalette.cs
- QilChoice.cs
- DefaultValueAttribute.cs
- AnnouncementInnerClient11.cs
- PageParserFilter.cs
- Compiler.cs
- Descriptor.cs
- PropertyState.cs
- ItemChangedEventArgs.cs
- SingleResultAttribute.cs
- ClientBuildManagerCallback.cs
- TypedReference.cs
- WorkflowDispatchContext.cs
- CustomErrorsSectionWrapper.cs
- DbParameterCollectionHelper.cs
- GenericRootAutomationPeer.cs
- CollectionDataContract.cs
- BamlLocalizabilityResolver.cs
- ConfigurationManagerInternalFactory.cs
- AssemblyName.cs
- Metadata.cs
- IBuiltInEvidence.cs
- UdpAnnouncementEndpoint.cs
- TypeDescriptor.cs
- AuthenticateEventArgs.cs
- ImmutableDispatchRuntime.cs
- MailMessageEventArgs.cs
- EditorZone.cs
- ListBoxDesigner.cs
- ControlBuilderAttribute.cs
- PackageRelationshipCollection.cs
- TriggerAction.cs
- OrderByLifter.cs
- Soap12ServerProtocol.cs
- Form.cs
- LocalServiceSecuritySettingsElement.cs
- ADConnectionHelper.cs
- LineMetrics.cs
- ParserStreamGeometryContext.cs
- ObjectSerializerFactory.cs
- XmlLanguage.cs
- DrawingDrawingContext.cs
- ToolStripHighContrastRenderer.cs
- DataGridViewDataConnection.cs
- DataFieldCollectionEditor.cs
- SkinBuilder.cs
- StringFreezingAttribute.cs
- TextEditorLists.cs
- ObjectListFieldCollection.cs
- mda.cs
- OleDbReferenceCollection.cs
- validationstate.cs
- Aggregates.cs
- ChunkedMemoryStream.cs
- CustomCategoryAttribute.cs
- WindowsListView.cs
- AsymmetricAlgorithm.cs
- IPipelineRuntime.cs
- TrackingServices.cs
- EventLogEntryCollection.cs
- KeyedHashAlgorithm.cs
- TableLayoutStyleCollection.cs
- Interlocked.cs
- QuotedStringWriteStateInfo.cs
- CryptoConfig.cs
- EventMappingSettings.cs
- DataGridTextBoxColumn.cs
- VectorAnimationBase.cs
- TextServicesCompartment.cs
- SerializationEventsCache.cs
- altserialization.cs
- GlobalizationSection.cs
- IssuanceTokenProviderBase.cs
- PngBitmapEncoder.cs
- TransactionManagerProxy.cs
- FormViewUpdatedEventArgs.cs
- CategoryNameCollection.cs
- TemplateModeChangedEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- LicenseProviderAttribute.cs
- SimpleBitVector32.cs