Code:
/ FX-1434 / FX-1434 / 1.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
- ToolTip.cs
- PassportAuthentication.cs
- HyperLinkStyle.cs
- ExecutionContext.cs
- ForwardPositionQuery.cs
- COM2PictureConverter.cs
- LinkConverter.cs
- HttpClientChannel.cs
- ADMembershipProvider.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FunctionQuery.cs
- AnnotationAuthorChangedEventArgs.cs
- FieldToken.cs
- StateFinalizationDesigner.cs
- ValidationResult.cs
- EventLogEntryCollection.cs
- DeflateStream.cs
- TextRangeBase.cs
- ValidatorCollection.cs
- BaseTypeViewSchema.cs
- MD5.cs
- XmlSchemaAttributeGroupRef.cs
- XmlWellformedWriter.cs
- ComponentManagerBroker.cs
- DataControlCommands.cs
- PrincipalPermission.cs
- WebConfigurationHostFileChange.cs
- EventBuilder.cs
- TdsParserSafeHandles.cs
- IndicCharClassifier.cs
- LinkButton.cs
- LogicalTreeHelper.cs
- HighlightVisual.cs
- X509ChainPolicy.cs
- ExpressionVisitor.cs
- UniqueConstraint.cs
- ParallelEnumerableWrapper.cs
- WebBrowserNavigatingEventHandler.cs
- ScriptingProfileServiceSection.cs
- NamedObject.cs
- _NetworkingPerfCounters.cs
- BuildProvidersCompiler.cs
- _SingleItemRequestCache.cs
- Transaction.cs
- RectangleConverter.cs
- FieldMetadata.cs
- WorkflowMessageEventHandler.cs
- SafeTimerHandle.cs
- InvalidateEvent.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- SqlBooleanizer.cs
- DBCommand.cs
- ConfigurationManagerHelper.cs
- SymmetricAlgorithm.cs
- Converter.cs
- GestureRecognitionResult.cs
- _AutoWebProxyScriptWrapper.cs
- UnauthorizedAccessException.cs
- CultureInfo.cs
- WebRequest.cs
- NodeFunctions.cs
- ModelChangedEventArgsImpl.cs
- InteropBitmapSource.cs
- ByteFacetDescriptionElement.cs
- BrowserDefinition.cs
- PermissionListSet.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlQueryRuntime.cs
- SortDescription.cs
- DataGridItemEventArgs.cs
- DataServiceQueryException.cs
- MemoryResponseElement.cs
- Subordinate.cs
- SoapEnvelopeProcessingElement.cs
- BamlTreeUpdater.cs
- HtmlElementErrorEventArgs.cs
- ClientRuntime.cs
- ForwardPositionQuery.cs
- AutomationElementCollection.cs
- SatelliteContractVersionAttribute.cs
- RepeaterItemCollection.cs
- AuthenticationModuleElement.cs
- XmlByteStreamReader.cs
- Type.cs
- _StreamFramer.cs
- AsyncOperationManager.cs
- SqlConnectionString.cs
- ApplicationGesture.cs
- ClientScriptManager.cs
- ChangePasswordDesigner.cs
- ApplicationContext.cs
- NamedPipeAppDomainProtocolHandler.cs
- ExpressionEditorSheet.cs
- DiscoveryDocumentSearchPattern.cs
- ObservableDictionary.cs
- MemberExpression.cs
- WebEventCodes.cs
- NetMsmqSecurityElement.cs
- RegexRunner.cs
- ProofTokenCryptoHandle.cs