Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Authorization.cs / 1 / Authorization.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { ////// public class Authorization { private string m_Message; private bool m_Complete; private string[] m_ProtectionRealm; private string m_ConnectionGroupId; private bool m_MutualAuth; ///Used for handling and completing a custom authorization. ////// public Authorization(string token) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = true; } ////// Creates a new instance of the ///class with the specified /// authorization token. /// /// public Authorization(string token, bool finished) { m_Message = ValidationHelper.MakeStringNull(token); m_Complete = finished; } ////// Creates a new instance of the ///class with the specified /// authorization token and completion status. /// /// public Authorization(string token, bool finished, string connectionGroupId): this(token, finished, connectionGroupId, false) { } // internal Authorization(string token, bool finished, string connectionGroupId, bool mutualAuth) { m_Message = ValidationHelper.MakeStringNull(token); m_ConnectionGroupId = ValidationHelper.MakeStringNull(connectionGroupId); m_Complete = finished; m_MutualAuth = mutualAuth; } ////// Creates a new instance of the ///class with the specified /// authorization token, completion status, and connection m_ConnectionGroupId identifier. /// /// public string Message { get { return m_Message;} } // used to specify if this Authorization needs a special private server connection, // identified by this string ///Gets /// the response returned to the server in response to an authentication /// challenge. ////// public string ConnectionGroupId { get { return m_ConnectionGroupId; } } ///[To be supplied.] ////// public bool Complete { get { return m_Complete;} } internal void SetComplete(bool complete) { m_Complete = complete; } ///Gets the completion status of the authorization. ////// public string[] ProtectionRealm { get { return m_ProtectionRealm;} set { string[] newValue = ValidationHelper.MakeEmptyArrayNull(value); m_ProtectionRealm = newValue; } } // // public bool MutuallyAuthenticated { get { return Complete && m_MutualAuth; } set { m_MutualAuth = value; } } } // class Authorization } // namespace System.NetGets or sets the prefix for Uris that can be authenticated with the ///property.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttributeEmitter.cs
- IpcClientManager.cs
- SystemMulticastIPAddressInformation.cs
- RenderOptions.cs
- XmlSchemaAppInfo.cs
- MatrixCamera.cs
- QueryOutputWriter.cs
- HierarchicalDataBoundControl.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlCharCheckingWriter.cs
- PassportAuthentication.cs
- CaseInsensitiveHashCodeProvider.cs
- Roles.cs
- ExtendedPropertyDescriptor.cs
- TextSelectionHelper.cs
- SelectionPattern.cs
- ClientSettingsProvider.cs
- DynamicResourceExtension.cs
- ProgressBar.cs
- KeyPullup.cs
- RNGCryptoServiceProvider.cs
- EnlistmentState.cs
- WorkflowInvoker.cs
- SerializationException.cs
- FamilyTypefaceCollection.cs
- LastQueryOperator.cs
- UIElementParaClient.cs
- SQLStringStorage.cs
- TextEditorParagraphs.cs
- Int32RectConverter.cs
- EmbeddedMailObject.cs
- ZipIOCentralDirectoryFileHeader.cs
- HandleCollector.cs
- MruCache.cs
- GcHandle.cs
- ContextStaticAttribute.cs
- AppDomainShutdownMonitor.cs
- FormViewDeletedEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- DataRelationCollection.cs
- ConfigurationHelpers.cs
- DateTimeStorage.cs
- MsmqChannelFactoryBase.cs
- DataRowExtensions.cs
- SemanticValue.cs
- ViewStateException.cs
- ZoomPercentageConverter.cs
- FixUp.cs
- BitmapCodecInfoInternal.cs
- SafeRightsManagementHandle.cs
- serverconfig.cs
- AuthorizationRule.cs
- Utilities.cs
- RevocationPoint.cs
- TypeDependencyAttribute.cs
- ExtensionMethods.cs
- LoggedException.cs
- MachineSettingsSection.cs
- XmlnsDictionary.cs
- GridEntryCollection.cs
- MembershipSection.cs
- ListBase.cs
- versioninfo.cs
- ReceiveCompletedEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- PowerModeChangedEventArgs.cs
- RewritingProcessor.cs
- QuotedPrintableStream.cs
- Missing.cs
- TextRunProperties.cs
- TextEditor.cs
- M3DUtil.cs
- ProviderManager.cs
- TouchPoint.cs
- SessionState.cs
- CalendarTable.cs
- DesignerListAdapter.cs
- PropertyItem.cs
- TemplatePagerField.cs
- ScrollViewer.cs
- UIHelper.cs
- NavigationHelper.cs
- CollectionView.cs
- HorizontalAlignConverter.cs
- FormClosingEvent.cs
- VirtualizingStackPanel.cs
- HttpClientProtocol.cs
- InputLanguageProfileNotifySink.cs
- EdmToObjectNamespaceMap.cs
- BitmapEffectGroup.cs
- BigInt.cs
- dataobject.cs
- TreeViewEvent.cs
- CatalogZoneDesigner.cs
- HttpWebRequest.cs
- XhtmlBasicLiteralTextAdapter.cs
- ButtonBase.cs
- DrawingAttributeSerializer.cs
- DeclaredTypeElement.cs
- EpmSyndicationContentSerializer.cs