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
- SqlDataSource.cs
- Membership.cs
- DataServiceResponse.cs
- SerialErrors.cs
- CollectionConverter.cs
- AlignmentXValidation.cs
- QueryReaderSettings.cs
- SymmetricSecurityProtocol.cs
- CacheRequest.cs
- DataSourceCache.cs
- SqlMetaData.cs
- ByteArrayHelperWithString.cs
- OrderedEnumerableRowCollection.cs
- ContainerUIElement3D.cs
- ToolStripDropTargetManager.cs
- EmptyStringExpandableObjectConverter.cs
- ErrorEventArgs.cs
- SqlServer2KCompatibilityCheck.cs
- WebPartManager.cs
- CalendarDataBindingHandler.cs
- MailWebEventProvider.cs
- SchemaNotation.cs
- DragCompletedEventArgs.cs
- SemanticResultKey.cs
- IndicShape.cs
- KeySplineConverter.cs
- InitializationEventAttribute.cs
- TreeViewImageIndexConverter.cs
- DependencyProperty.cs
- ShellProvider.cs
- ProxyWebPartConnectionCollection.cs
- DataContractSerializer.cs
- ConfigXmlSignificantWhitespace.cs
- XmlCompatibilityReader.cs
- SevenBitStream.cs
- ErrorItem.cs
- KnownTypesHelper.cs
- FlowDocumentPage.cs
- DataGridViewTextBoxCell.cs
- StrokeCollectionConverter.cs
- Rule.cs
- CodeTypeReference.cs
- ItemCheckedEvent.cs
- ObjectDataSourceView.cs
- WaitingCursor.cs
- RegionInfo.cs
- BlockCollection.cs
- SchemaDeclBase.cs
- InputScope.cs
- WindowsFormsHost.cs
- ReplyAdapterChannelListener.cs
- FlowDocumentPage.cs
- DecoderFallbackWithFailureFlag.cs
- QilUnary.cs
- ParserStreamGeometryContext.cs
- HScrollBar.cs
- SafeUserTokenHandle.cs
- PropertyGridView.cs
- TextSchema.cs
- OdbcEnvironment.cs
- SignedXmlDebugLog.cs
- SerializationIncompleteException.cs
- ColumnHeaderConverter.cs
- LoginView.cs
- ControlPropertyNameConverter.cs
- ClipboardProcessor.cs
- Registration.cs
- HttpCookieCollection.cs
- SizeConverter.cs
- UnmanagedMemoryStream.cs
- TextRangeEdit.cs
- TreeViewImageKeyConverter.cs
- XmlAnyElementAttributes.cs
- InvalidCommandTreeException.cs
- DocumentPageViewAutomationPeer.cs
- SwitchLevelAttribute.cs
- XPathNodeList.cs
- HttpGetProtocolImporter.cs
- MetadataCache.cs
- PerfService.cs
- EnumValAlphaComparer.cs
- BitVec.cs
- TypedDatasetGenerator.cs
- EarlyBoundInfo.cs
- PackWebRequestFactory.cs
- RTLAwareMessageBox.cs
- GroupItem.cs
- BuildManager.cs
- QuadraticBezierSegment.cs
- Int32EqualityComparer.cs
- OutputCacheSettingsSection.cs
- DataGridViewImageCell.cs
- MobileControlsSectionHandler.cs
- EventTrigger.cs
- SqlSelectClauseBuilder.cs
- SamlConstants.cs
- SqlFunctionAttribute.cs
- InputProcessorProfilesLoader.cs
- TabControlDesigner.cs
- nulltextnavigator.cs