Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Authorization.cs / 1305376 / 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.Net // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets 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
- GorillaCodec.cs
- RuntimeComponentFilter.cs
- AppDomainEvidenceFactory.cs
- CounterSample.cs
- DataColumnCollection.cs
- x509utils.cs
- XmlSchemaObjectCollection.cs
- SapiRecognizer.cs
- ActivityExecutionContext.cs
- HttpCookiesSection.cs
- GridViewEditEventArgs.cs
- XmlSchemaGroup.cs
- TableLayoutPanel.cs
- RequiredFieldValidator.cs
- Asn1Utilities.cs
- mediaclock.cs
- FigureParaClient.cs
- InheritanceAttribute.cs
- OleDbDataReader.cs
- TabItemAutomationPeer.cs
- CollectionViewGroupRoot.cs
- NotifyCollectionChangedEventArgs.cs
- CompilerCollection.cs
- ContentHostHelper.cs
- FileDetails.cs
- DbgUtil.cs
- OleDbPropertySetGuid.cs
- EventDescriptor.cs
- PageThemeCodeDomTreeGenerator.cs
- TextDecorationUnitValidation.cs
- MenuItemStyleCollection.cs
- SequenceFullException.cs
- SupportsEventValidationAttribute.cs
- TableRowGroup.cs
- InvalidateEvent.cs
- EmptyEnumerator.cs
- MimeObjectFactory.cs
- GregorianCalendarHelper.cs
- HMACRIPEMD160.cs
- KnownIds.cs
- MissingMethodException.cs
- RadioButton.cs
- TableItemPatternIdentifiers.cs
- SystemBrushes.cs
- ConditionBrowserDialog.cs
- ComponentChangedEvent.cs
- ScrollProperties.cs
- PriorityQueue.cs
- XmlNodeChangedEventManager.cs
- XsltSettings.cs
- PerfProviderCollection.cs
- EventHandlingScope.cs
- dbdatarecord.cs
- DataListAutoFormat.cs
- WebPartCancelEventArgs.cs
- SamlSubject.cs
- SqlXmlStorage.cs
- RightsManagementPermission.cs
- XsltConvert.cs
- LoginView.cs
- DataTableNewRowEvent.cs
- SafeArrayRankMismatchException.cs
- UndoManager.cs
- Binding.cs
- DataBindingHandlerAttribute.cs
- XmlToDatasetMap.cs
- _Events.cs
- PerformanceCounterPermissionAttribute.cs
- DatatypeImplementation.cs
- FileSecurity.cs
- VarRefManager.cs
- BamlWriter.cs
- SkipQueryOptionExpression.cs
- URLString.cs
- SafeLibraryHandle.cs
- COAUTHINFO.cs
- SQLBytes.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlText.cs
- UniformGrid.cs
- Model3D.cs
- PrivilegedConfigurationManager.cs
- ListDictionary.cs
- WebScriptEnablingElement.cs
- UpDownBase.cs
- SerializationInfoEnumerator.cs
- VarRemapper.cs
- nulltextnavigator.cs
- ScriptHandlerFactory.cs
- AxHost.cs
- Rotation3DAnimation.cs
- BufferModesCollection.cs
- ConfigurationSectionCollection.cs
- EpmSourcePathSegment.cs
- Screen.cs
- EntityDataReader.cs
- Parser.cs
- XPathParser.cs
- LambdaCompiler.Unary.cs
- ObjectPersistData.cs