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
- BevelBitmapEffect.cs
- ToolstripProfessionalRenderer.cs
- CompensationExtension.cs
- _ConnectStream.cs
- FixedTextContainer.cs
- PhysicalOps.cs
- CLRBindingWorker.cs
- UserPreferenceChangingEventArgs.cs
- TextElementEnumerator.cs
- PointAnimationBase.cs
- SymbolType.cs
- PathParser.cs
- ToolStripDropDownItemDesigner.cs
- HttpApplication.cs
- SubstitutionResponseElement.cs
- SQLInt16.cs
- AnonymousIdentificationSection.cs
- SapiRecognizer.cs
- DoubleUtil.cs
- RedirectionProxy.cs
- StreamAsIStream.cs
- LZCodec.cs
- IsolatedStorageFilePermission.cs
- HMACSHA256.cs
- EventLogStatus.cs
- ChannelSinkStacks.cs
- Vector3DKeyFrameCollection.cs
- MediaPlayer.cs
- RowUpdatedEventArgs.cs
- StatusBarDrawItemEvent.cs
- SoapMessage.cs
- DrawingAttributes.cs
- Pair.cs
- TraceHwndHost.cs
- CryptoConfig.cs
- SqlUdtInfo.cs
- BitSet.cs
- NotSupportedException.cs
- ServiceAuthorizationElement.cs
- ImageAutomationPeer.cs
- TableRow.cs
- OracleEncoding.cs
- StringExpressionSet.cs
- UnionCqlBlock.cs
- VsPropertyGrid.cs
- EnumUnknown.cs
- CapabilitiesState.cs
- BaseDataList.cs
- DrawingGroup.cs
- ProfileService.cs
- WebResponse.cs
- InternalBufferManager.cs
- WebPartUserCapability.cs
- DatagridviewDisplayedBandsData.cs
- SuppressIldasmAttribute.cs
- LogLogRecordHeader.cs
- ListBox.cs
- WebPartsPersonalizationAuthorization.cs
- Timer.cs
- HttpCachePolicyElement.cs
- FormViewRow.cs
- TreeView.cs
- DataGridViewRowHeaderCell.cs
- CompositionAdorner.cs
- DbConnectionPoolCounters.cs
- PageBorderless.cs
- SelectionItemProviderWrapper.cs
- EntitySqlQueryCacheKey.cs
- ResourceReferenceExpressionConverter.cs
- Input.cs
- XslAst.cs
- Array.cs
- RoutedEventHandlerInfo.cs
- DataTableTypeConverter.cs
- IFormattable.cs
- _FtpDataStream.cs
- DataTableCollection.cs
- XmlNamedNodeMap.cs
- XmlSchemaSimpleTypeList.cs
- ComponentDesigner.cs
- CheckBoxStandardAdapter.cs
- DecimalMinMaxAggregationOperator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Label.cs
- StreamGeometryContext.cs
- DataGridViewTextBoxCell.cs
- LinkArea.cs
- Parser.cs
- HuffCodec.cs
- AccessViolationException.cs
- UrlUtility.cs
- QilXmlReader.cs
- BitmapCacheBrush.cs
- PixelFormats.cs
- TextElementCollectionHelper.cs
- MediaElementAutomationPeer.cs
- DesignBindingConverter.cs
- ParallelSeparator.xaml.cs
- ListCollectionView.cs
- QuotedPrintableStream.cs