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
- LinearGradientBrush.cs
- XmlILModule.cs
- PathNode.cs
- URLAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- ParallelEnumerable.cs
- DataService.cs
- ObjectDataSourceMethodEventArgs.cs
- TabOrder.cs
- BaseUriHelper.cs
- XPathArrayIterator.cs
- ContextMenu.cs
- QuaternionAnimation.cs
- HtmlTableCellCollection.cs
- SmtpMail.cs
- DateTimeSerializationSection.cs
- Propagator.ExtentPlaceholderCreator.cs
- GeometryCollection.cs
- HttpHandlersSection.cs
- DataGridViewCellConverter.cs
- SortedDictionary.cs
- ControlParameter.cs
- TemplateControlBuildProvider.cs
- SystemIPInterfaceProperties.cs
- SessionIDManager.cs
- ImageAnimator.cs
- CaseStatement.cs
- LambdaCompiler.Expressions.cs
- JsonByteArrayDataContract.cs
- Errors.cs
- FilteredAttributeCollection.cs
- TemplatePartAttribute.cs
- XmlTextWriter.cs
- FormCollection.cs
- ConnectionStringsExpressionBuilder.cs
- HtmlTableCell.cs
- MetadataItem_Static.cs
- RelatedPropertyManager.cs
- EventLogEntry.cs
- XmlReflectionImporter.cs
- InternalDuplexChannelFactory.cs
- ScaleTransform.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- EntityViewGenerationAttribute.cs
- TaiwanCalendar.cs
- FilePrompt.cs
- XmlSerializer.cs
- ContextQuery.cs
- ValidationService.cs
- ExceptionHandlers.cs
- IntegrationExceptionEventArgs.cs
- DescriptionAttribute.cs
- RangeValueProviderWrapper.cs
- NativeCppClassAttribute.cs
- UnmanagedMarshal.cs
- DiagnosticsConfiguration.cs
- IntranetCredentialPolicy.cs
- LocalFileSettingsProvider.cs
- InputScope.cs
- tabpagecollectioneditor.cs
- RelationshipConstraintValidator.cs
- SplitContainer.cs
- RegionIterator.cs
- CultureInfoConverter.cs
- WSSecurityTokenSerializer.cs
- WinCategoryAttribute.cs
- TextBoxBase.cs
- WebConfigurationFileMap.cs
- CfgParser.cs
- AddToCollection.cs
- InfoCardTraceRecord.cs
- RichTextBox.cs
- ActivityStateRecord.cs
- ToolStripButton.cs
- SettingsSection.cs
- AvTraceDetails.cs
- MD5HashHelper.cs
- StringCollectionMarkupSerializer.cs
- MulticastOption.cs
- NetSectionGroup.cs
- InstanceDataCollection.cs
- SqlDataSourceCommandEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- HttpWebResponse.cs
- HtmlMeta.cs
- ChameleonKey.cs
- ObjectViewQueryResultData.cs
- ITextView.cs
- Command.cs
- SecurityTokenInclusionMode.cs
- IntersectQueryOperator.cs
- Membership.cs
- FormatConvertedBitmap.cs
- BidOverLoads.cs
- TraceFilter.cs
- BindingList.cs
- XslNumber.cs
- SBCSCodePageEncoding.cs
- OleDbConnectionPoolGroupProviderInfo.cs