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
- AssemblyBuilderData.cs
- PanelStyle.cs
- MouseEventArgs.cs
- PropertyMap.cs
- ChunkedMemoryStream.cs
- ToolZone.cs
- SimpleWorkerRequest.cs
- NamespaceEmitter.cs
- Certificate.cs
- DispatcherOperation.cs
- DecimalAnimation.cs
- TypeInitializationException.cs
- CrossSiteScriptingValidation.cs
- RectAnimationBase.cs
- TextBreakpoint.cs
- CodeCompileUnit.cs
- XmlSerializationReader.cs
- ComPlusAuthorization.cs
- MaskedTextBoxDesigner.cs
- HuffmanTree.cs
- SharedDp.cs
- NetworkInformationPermission.cs
- PackageProperties.cs
- ObjectViewListener.cs
- RoutingUtilities.cs
- VolatileResourceManager.cs
- ApplicationHost.cs
- Image.cs
- CfgParser.cs
- ShadowGlyph.cs
- DataBoundControlHelper.cs
- ApplicationServiceManager.cs
- SqlHelper.cs
- BoundPropertyEntry.cs
- OptimizerPatterns.cs
- TextEffect.cs
- SystemInfo.cs
- NullableDoubleSumAggregationOperator.cs
- VectorCollectionConverter.cs
- StreamedFramingRequestChannel.cs
- StandardBindingOptionalReliableSessionElement.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- RelationshipDetailsRow.cs
- QueryExpr.cs
- ButtonFieldBase.cs
- CleanUpVirtualizedItemEventArgs.cs
- Semaphore.cs
- GPPOINT.cs
- MethodBuilderInstantiation.cs
- QueryProcessor.cs
- RegistryExceptionHelper.cs
- TreeSet.cs
- BrowserTree.cs
- ViewManager.cs
- PageSettings.cs
- WebPageTraceListener.cs
- ZipQueryOperator.cs
- RelativeSource.cs
- DataServiceEntityAttribute.cs
- RoleManagerEventArgs.cs
- StringHandle.cs
- BStrWrapper.cs
- SafeSecurityHelper.cs
- HttpWebResponse.cs
- DateTime.cs
- ResourceDisplayNameAttribute.cs
- BadImageFormatException.cs
- SystemColors.cs
- VisualStates.cs
- ComponentResourceKeyConverter.cs
- XmlWellformedWriter.cs
- activationcontext.cs
- PresentationAppDomainManager.cs
- SmiContext.cs
- PropertyInfoSet.cs
- DataServiceExpressionVisitor.cs
- BoundPropertyEntry.cs
- DbProviderFactory.cs
- ChangeProcessor.cs
- EncryptedPackageFilter.cs
- XmlTextReaderImplHelpers.cs
- KeyFrames.cs
- OdbcParameter.cs
- PathStreamGeometryContext.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- RowType.cs
- IdleTimeoutMonitor.cs
- ICspAsymmetricAlgorithm.cs
- DocumentViewerBaseAutomationPeer.cs
- PlainXmlSerializer.cs
- SchemaUtility.cs
- Cursors.cs
- SortQuery.cs
- Int64Converter.cs
- FreeIndexList.cs
- SizeAnimationClockResource.cs
- HttpProfileBase.cs
- _HTTPDateParse.cs
- InstalledFontCollection.cs
- Int64AnimationUsingKeyFrames.cs