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
- ChangePassword.cs
- BindingsCollection.cs
- FixedSOMLineRanges.cs
- SinglePageViewer.cs
- ActivityMarkupSerializationProvider.cs
- DesignerTransaction.cs
- PtsPage.cs
- CellPartitioner.cs
- WebScriptEndpoint.cs
- OverlappedAsyncResult.cs
- WhitespaceRuleLookup.cs
- CompiledIdentityConstraint.cs
- WebSysDisplayNameAttribute.cs
- MeasureData.cs
- MemoryMappedFileSecurity.cs
- WmlPhoneCallAdapter.cs
- Point.cs
- ServicePointManagerElement.cs
- DocumentDesigner.cs
- SvcMapFile.cs
- FormClosedEvent.cs
- Tool.cs
- XmlCharCheckingReader.cs
- XmlBoundElement.cs
- FlowDocumentScrollViewer.cs
- SqlClientFactory.cs
- MultitargetingHelpers.cs
- DataSet.cs
- Int16AnimationUsingKeyFrames.cs
- MSAAWinEventWrap.cs
- AndCondition.cs
- AnnotationObservableCollection.cs
- MatchAttribute.cs
- MenuItem.cs
- StatusBarAutomationPeer.cs
- QuarticEase.cs
- ADMembershipProvider.cs
- TaskFileService.cs
- ScrollBarRenderer.cs
- Rijndael.cs
- QuadraticBezierSegment.cs
- BindingNavigator.cs
- PropertyValueUIItem.cs
- regiisutil.cs
- _AuthenticationState.cs
- baseaxisquery.cs
- GenericsInstances.cs
- BufferAllocator.cs
- WebHttpDispatchOperationSelector.cs
- ObjectFullSpanRewriter.cs
- RegionInfo.cs
- SoundPlayerAction.cs
- HtmlToClrEventProxy.cs
- DbSetClause.cs
- TrustManagerMoreInformation.cs
- TextBoxDesigner.cs
- LOSFormatter.cs
- DetailsViewPageEventArgs.cs
- InProcStateClientManager.cs
- SchemaElementLookUpTable.cs
- SimplePropertyEntry.cs
- CryptoProvider.cs
- ToolStripSettings.cs
- SyndicationCategory.cs
- XmlElementCollection.cs
- SQLSingleStorage.cs
- MsmqVerifier.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- XsltCompileContext.cs
- MatrixTransform.cs
- ListItemCollection.cs
- WebPartPersonalization.cs
- PageAsyncTaskManager.cs
- MsmqIntegrationBindingElement.cs
- RequestCachePolicy.cs
- TreeNodeCollection.cs
- ResourceSetExpression.cs
- SocketException.cs
- MultiView.cs
- ReadOnlyActivityGlyph.cs
- IgnoreSection.cs
- DropTarget.cs
- InstalledFontCollection.cs
- DispatcherEventArgs.cs
- _Connection.cs
- SpecialTypeDataContract.cs
- messageonlyhwndwrapper.cs
- ListBoxItemWrapperAutomationPeer.cs
- UInt64Converter.cs
- Query.cs
- TemplateManager.cs
- SqlProviderManifest.cs
- LineServicesCallbacks.cs
- XmlName.cs
- FormatterConverter.cs
- AtomEntry.cs
- IgnoreDeviceFilterElementCollection.cs
- X509UI.cs
- SessionEndingCancelEventArgs.cs
- ObjectResult.cs