Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.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. // 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
- NavigationWindow.cs
- SerializationSectionGroup.cs
- _NtlmClient.cs
- xdrvalidator.cs
- LogLogRecordHeader.cs
- GeneralTransform3DGroup.cs
- XmlDocumentFragment.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- Transactions.cs
- GcHandle.cs
- TriggerActionCollection.cs
- EventOpcode.cs
- Semaphore.cs
- GestureRecognizer.cs
- UnsignedPublishLicense.cs
- HttpCacheVary.cs
- XmlSchemaSequence.cs
- Visitor.cs
- ResourceReader.cs
- DataTransferEventArgs.cs
- AttributeSetAction.cs
- SafeUserTokenHandle.cs
- OleDbPermission.cs
- ScriptingWebServicesSectionGroup.cs
- XamlFilter.cs
- SrgsElement.cs
- RootProfilePropertySettingsCollection.cs
- KeyGestureConverter.cs
- WebCodeGenerator.cs
- RolePrincipal.cs
- ErrorHandlingReceiver.cs
- ReadOnlyNameValueCollection.cs
- Char.cs
- WebSysDescriptionAttribute.cs
- OleDbDataAdapter.cs
- WebSysDescriptionAttribute.cs
- LayoutTable.cs
- TextBox.cs
- QueryStringParameter.cs
- HttpNamespaceReservationInstallComponent.cs
- ProcessHostFactoryHelper.cs
- SoapProtocolReflector.cs
- WmiPutTraceRecord.cs
- GenericIdentity.cs
- SamlConditions.cs
- Camera.cs
- TextServicesCompartment.cs
- FixedSOMFixedBlock.cs
- KeyValueConfigurationCollection.cs
- List.cs
- HtmlAnchor.cs
- TcpDuplicateContext.cs
- SerializationException.cs
- StreamResourceInfo.cs
- externdll.cs
- ErrorWebPart.cs
- UrlAuthorizationModule.cs
- DataGridViewLayoutData.cs
- ColorConverter.cs
- DocumentCollection.cs
- RoutedEvent.cs
- XmlAttributes.cs
- CategoryNameCollection.cs
- DirectoryObjectSecurity.cs
- ParagraphResult.cs
- StandardOleMarshalObject.cs
- CodeGeneratorOptions.cs
- RegistryKey.cs
- SerializationFieldInfo.cs
- ResXResourceSet.cs
- Calendar.cs
- WebPartCollection.cs
- DrawingState.cs
- ToolStripItemEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- X509CertificateTrustedIssuerElement.cs
- TextRangeSerialization.cs
- Rect.cs
- MediaPlayer.cs
- DataObjectMethodAttribute.cs
- ASCIIEncoding.cs
- ForEachAction.cs
- FileIOPermission.cs
- TreeNodeStyleCollection.cs
- typedescriptorpermission.cs
- CloseSequenceResponse.cs
- HighlightComponent.cs
- SemaphoreSlim.cs
- DataGridItemCollection.cs
- TagNameToTypeMapper.cs
- XMLSchema.cs
- IconConverter.cs
- WorkflowInstanceProxy.cs
- DataRecordInternal.cs
- TraceData.cs
- XmlUtf8RawTextWriter.cs
- CancellationHandler.cs
- DataRecordInfo.cs
- EventDescriptor.cs
- DbFunctionCommandTree.cs