Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // // ==--== // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLConvert.cs
- XmlUtil.cs
- GenericPrincipal.cs
- ControlPropertyNameConverter.cs
- ListItem.cs
- BaseInfoTable.cs
- sqlpipe.cs
- OdbcFactory.cs
- KnownTypes.cs
- ReferentialConstraint.cs
- ExceptionHandlersDesigner.cs
- DateTimeOffsetAdapter.cs
- BufferedReadStream.cs
- LinkedResourceCollection.cs
- IndexedWhereQueryOperator.cs
- ParentQuery.cs
- SqlParameterCollection.cs
- DATA_BLOB.cs
- Attributes.cs
- PKCS1MaskGenerationMethod.cs
- SessionState.cs
- PropertyPushdownHelper.cs
- ObjectSpanRewriter.cs
- ProfileSection.cs
- Switch.cs
- SHA1CryptoServiceProvider.cs
- NegotiateStream.cs
- IgnoreSection.cs
- ValidatorCompatibilityHelper.cs
- TextSelectionHelper.cs
- ServerValidateEventArgs.cs
- WorkflowViewElement.cs
- HttpValueCollection.cs
- ParserExtension.cs
- ValidationHelper.cs
- ArgIterator.cs
- DataTableReader.cs
- EventBuilder.cs
- DataObjectEventArgs.cs
- PkcsUtils.cs
- DefaultParameterValueAttribute.cs
- DeleteHelper.cs
- BitmapEffectDrawing.cs
- BitStream.cs
- Margins.cs
- BevelBitmapEffect.cs
- MemberDescriptor.cs
- SQLBytesStorage.cs
- RenderData.cs
- RequestCacheValidator.cs
- QueryableDataSourceEditData.cs
- DeadLetterQueue.cs
- SimpleMailWebEventProvider.cs
- AddingNewEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- TableRow.cs
- WebPartTransformerCollection.cs
- DBSchemaRow.cs
- DataComponentGenerator.cs
- ResourceProviderFactory.cs
- ObjectStateEntry.cs
- NamespaceExpr.cs
- DataSetMappper.cs
- __Error.cs
- FontStyleConverter.cs
- LinkTarget.cs
- WeakReferenceKey.cs
- DataChangedEventManager.cs
- ApplicationActivator.cs
- AuthenticationConfig.cs
- MetadataItemEmitter.cs
- SendParametersContent.cs
- HostVisual.cs
- MachineKeySection.cs
- EnumerableRowCollection.cs
- Restrictions.cs
- GcSettings.cs
- EventListenerClientSide.cs
- InstanceOwnerQueryResult.cs
- PropertyInfo.cs
- HandlerWithFactory.cs
- HttpCachePolicyBase.cs
- PropertyDescriptor.cs
- ModelItemKeyValuePair.cs
- InstanceCompleteException.cs
- UserControl.cs
- CompositionTarget.cs
- RuntimeConfigurationRecord.cs
- SharedTcpTransportManager.cs
- CqlQuery.cs
- DataGridViewCell.cs
- RecognizerStateChangedEventArgs.cs
- ListViewInsertedEventArgs.cs
- DesignerLinkAdapter.cs
- controlskin.cs
- FrameworkContentElement.cs
- ConfigurationLocation.cs
- DataGridViewTopRowAccessibleObject.cs
- Column.cs
- CodeTryCatchFinallyStatement.cs