Code:
/ FX-1434 / FX-1434 / 1.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
- CatalogZoneBase.cs
- ObjectDataSourceDisposingEventArgs.cs
- _OverlappedAsyncResult.cs
- Verify.cs
- InheritanceService.cs
- QueryReaderSettings.cs
- ButtonAutomationPeer.cs
- DataGridViewEditingControlShowingEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- ImageConverter.cs
- BooleanConverter.cs
- BlockUIContainer.cs
- JsonEncodingStreamWrapper.cs
- Window.cs
- XmlSchemaCollection.cs
- ServiceModelEnumValidatorAttribute.cs
- SqlErrorCollection.cs
- ComPlusServiceLoader.cs
- JoinSymbol.cs
- Filter.cs
- TextPointer.cs
- Membership.cs
- ToolstripProfessionalRenderer.cs
- DataGridViewComboBoxCell.cs
- GlyphRunDrawing.cs
- XmlHierarchicalDataSourceView.cs
- SimpleType.cs
- SafeFileMapViewHandle.cs
- Assembly.cs
- IHttpResponseInternal.cs
- Animatable.cs
- ServiceCredentialsElement.cs
- BindingOperations.cs
- localization.cs
- SmiXetterAccessMap.cs
- WebPartCatalogAddVerb.cs
- Light.cs
- CorruptStoreException.cs
- StickyNoteAnnotations.cs
- If.cs
- SHA1Managed.cs
- GridViewEditEventArgs.cs
- OletxEnlistment.cs
- SignatureDescription.cs
- SendMessageContent.cs
- CodeEntryPointMethod.cs
- WindowProviderWrapper.cs
- InlineCollection.cs
- FormsAuthentication.cs
- ToolStripDesignerAvailabilityAttribute.cs
- BreakRecordTable.cs
- HwndTarget.cs
- HttpCookie.cs
- CustomCredentialPolicy.cs
- OrderedParallelQuery.cs
- XamlToRtfWriter.cs
- SignedPkcs7.cs
- SqlIdentifier.cs
- XPathDocumentNavigator.cs
- QueryableDataSourceHelper.cs
- mediaeventargs.cs
- RegistrationServices.cs
- Roles.cs
- OleDbException.cs
- TypographyProperties.cs
- WebPartDescriptionCollection.cs
- XmlSchemaGroup.cs
- DockPanel.cs
- StatusBarPanel.cs
- ProgressBar.cs
- Effect.cs
- TimeSpanSecondsConverter.cs
- RectangleGeometry.cs
- ReferencedAssembly.cs
- ipaddressinformationcollection.cs
- PrintEvent.cs
- ConfigUtil.cs
- HttpRawResponse.cs
- ActionItem.cs
- DetailsViewInsertEventArgs.cs
- WebBrowserHelper.cs
- PasswordBoxAutomationPeer.cs
- FormsAuthenticationUser.cs
- HasCopySemanticsAttribute.cs
- TypefaceMetricsCache.cs
- FeatureSupport.cs
- GridViewColumn.cs
- WebUtility.cs
- KeyEvent.cs
- StopRoutingHandler.cs
- safelinkcollection.cs
- DefaultTraceListener.cs
- PrincipalPermission.cs
- WizardSideBarListControlItem.cs
- SoapExtensionStream.cs
- MemberPath.cs
- AppliesToBehaviorDecisionTable.cs
- MSG.cs
- DbProviderManifest.cs
- DependencyPropertyKind.cs