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
- ConfigXmlWhitespace.cs
- RowParagraph.cs
- BamlTreeUpdater.cs
- XmlWhitespace.cs
- XdrBuilder.cs
- SimpleHandlerFactory.cs
- RunWorkerCompletedEventArgs.cs
- ScaleTransform.cs
- AppSettingsExpressionBuilder.cs
- hwndwrapper.cs
- ListBindingConverter.cs
- IteratorDescriptor.cs
- RoutingUtilities.cs
- DelegateHelpers.Generated.cs
- ObjRef.cs
- ConfigsHelper.cs
- FormViewInsertedEventArgs.cs
- arabicshape.cs
- SmtpReplyReaderFactory.cs
- ObjectCacheSettings.cs
- AssemblyFilter.cs
- IndexedString.cs
- LinkedResourceCollection.cs
- SamlSubject.cs
- XmlSchemaDatatype.cs
- DockingAttribute.cs
- PropertyTabAttribute.cs
- TransformPatternIdentifiers.cs
- RelationshipWrapper.cs
- DataGridViewCheckBoxColumn.cs
- DetailsViewPagerRow.cs
- PropertyGeneratedEventArgs.cs
- FixUp.cs
- BindingExpression.cs
- ConfigsHelper.cs
- XmlSchemaAppInfo.cs
- WebControlsSection.cs
- Int32EqualityComparer.cs
- IPGlobalProperties.cs
- log.cs
- AssociationSetMetadata.cs
- AssemblyBuilderData.cs
- SymmetricSecurityProtocolFactory.cs
- HtmlInputHidden.cs
- ObjectNotFoundException.cs
- TypeExtensionConverter.cs
- bindurihelper.cs
- DataObject.cs
- KeyValueConfigurationElement.cs
- XmlCharacterData.cs
- WpfWebRequestHelper.cs
- DependentTransaction.cs
- SoapProtocolImporter.cs
- InternalPolicyElement.cs
- PaintEvent.cs
- DeflateStream.cs
- DataRecordInternal.cs
- ListViewItemEventArgs.cs
- ObjectTag.cs
- XmlSchemaInclude.cs
- RuleSetDialog.Designer.cs
- AppDomainEvidenceFactory.cs
- XmlValidatingReader.cs
- FormClosingEvent.cs
- MetabaseReader.cs
- TraceHandler.cs
- WebPartConnectionCollection.cs
- Byte.cs
- AliasedSlot.cs
- ContractUtils.cs
- StrokeIntersection.cs
- TdsParserSessionPool.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- EditCommandColumn.cs
- sitestring.cs
- SimplePropertyEntry.cs
- DataGridViewLayoutData.cs
- EntityFunctions.cs
- OraclePermission.cs
- HttpListenerElement.cs
- WmlPanelAdapter.cs
- MultiTrigger.cs
- PcmConverter.cs
- ListViewAutomationPeer.cs
- QuaternionKeyFrameCollection.cs
- FlowSwitchDesigner.xaml.cs
- RijndaelManagedTransform.cs
- EntityViewGenerationAttribute.cs
- DecoderReplacementFallback.cs
- NetTcpSecurityElement.cs
- NumericExpr.cs
- BindingNavigator.cs
- HtmlInputControl.cs
- FamilyTypeface.cs
- DataServiceHost.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- ListBindingConverter.cs
- DataGridView.cs
- GridViewDeletedEventArgs.cs
- XmlElementElement.cs