Code:
/ 4.0 / 4.0 / 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. // 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
- SendMailErrorEventArgs.cs
- NonceToken.cs
- ObjectTypeMapping.cs
- Object.cs
- Point.cs
- InnerItemCollectionView.cs
- CodeTypeDelegate.cs
- Sql8ExpressionRewriter.cs
- TransformerTypeCollection.cs
- DataSourceIDConverter.cs
- DelegatingTypeDescriptionProvider.cs
- Attribute.cs
- DecimalConverter.cs
- CommandLineParser.cs
- RectAnimationUsingKeyFrames.cs
- CodeTryCatchFinallyStatement.cs
- COM2PictureConverter.cs
- PathParser.cs
- ConfigurationManagerHelper.cs
- WorkflowServiceNamespace.cs
- ReadOnlyPropertyMetadata.cs
- LoadedOrUnloadedOperation.cs
- PropertiesTab.cs
- InputLanguageManager.cs
- RestHandlerFactory.cs
- WizardStepCollectionEditor.cs
- ContentFileHelper.cs
- SamlDelegatingWriter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- ProgressChangedEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- Command.cs
- C14NUtil.cs
- MailDefinition.cs
- ReflectionHelper.cs
- ProfileGroupSettings.cs
- ConditionedDesigner.cs
- StateManagedCollection.cs
- MetafileHeader.cs
- OpacityConverter.cs
- WindowsPen.cs
- RawStylusInput.cs
- SqlWebEventProvider.cs
- NetCodeGroup.cs
- RemoteWebConfigurationHostStream.cs
- XamlParser.cs
- TabItem.cs
- ToolboxItemLoader.cs
- ReadOnlyCollectionBase.cs
- OpenTypeLayout.cs
- ColorBuilder.cs
- DebugHandleTracker.cs
- Types.cs
- Expander.cs
- ConfigurationSectionGroupCollection.cs
- FrugalList.cs
- ConfigXmlText.cs
- GridViewUpdateEventArgs.cs
- CellParagraph.cs
- BeginStoryboard.cs
- CodeCommentStatementCollection.cs
- BitmapCodecInfoInternal.cs
- CLSCompliantAttribute.cs
- FusionWrap.cs
- GradientStop.cs
- ProgressBarRenderer.cs
- SemanticAnalyzer.cs
- Helper.cs
- SettingsBindableAttribute.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- InvalidDataException.cs
- ChannelServices.cs
- NativeWindow.cs
- WebPartCatalogAddVerb.cs
- Stack.cs
- GeneralTransform3DTo2DTo3D.cs
- ManifestSignedXml.cs
- Subtree.cs
- DefaultObjectMappingItemCollection.cs
- ClientSession.cs
- Path.cs
- UrlMappingsSection.cs
- ShapeTypeface.cs
- AtomServiceDocumentSerializer.cs
- RolePrincipal.cs
- TraceContextRecord.cs
- ListViewDataItem.cs
- ClickablePoint.cs
- IQueryable.cs
- Deflater.cs
- BaseAddressElementCollection.cs
- OperandQuery.cs
- TreeViewAutomationPeer.cs
- Attributes.cs
- FormatConvertedBitmap.cs
- HttpConfigurationContext.cs
- DataGridCaption.cs
- ButtonStandardAdapter.cs
- DataServiceStreamResponse.cs
- DrawingVisual.cs