Code:
/ DotNET / DotNET / 8.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
- DiagnosticsElement.cs
- BaseAppDomainProtocolHandler.cs
- SqlUtils.cs
- BoundConstants.cs
- MethodBody.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataGridItemCollection.cs
- SettingsPropertyNotFoundException.cs
- OpenTypeCommon.cs
- DiscreteKeyFrames.cs
- PropertyInformationCollection.cs
- PersonalizationEntry.cs
- PixelFormats.cs
- FieldNameLookup.cs
- CellIdBoolean.cs
- CommonGetThemePartSize.cs
- HotSpot.cs
- ExpressionConverter.cs
- ContractMapping.cs
- MetadataFile.cs
- HttpModulesSection.cs
- MaterialCollection.cs
- CommonDialog.cs
- SecondaryViewProvider.cs
- FontFamily.cs
- XamlFrame.cs
- CodeVariableDeclarationStatement.cs
- DataGridViewCellStyleBuilderDialog.cs
- controlskin.cs
- ColumnBinding.cs
- CompilerInfo.cs
- WindowsEditBox.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PowerEase.cs
- FontInfo.cs
- SimpleHandlerBuildProvider.cs
- WebPartConnectionsEventArgs.cs
- NonSerializedAttribute.cs
- LinkTarget.cs
- MediaTimeline.cs
- CellLabel.cs
- Nullable.cs
- CompilerError.cs
- ThreadExceptionEvent.cs
- FixedSOMFixedBlock.cs
- CultureInfo.cs
- DocumentSequenceHighlightLayer.cs
- CellIdBoolean.cs
- SignedPkcs7.cs
- __TransparentProxy.cs
- LoginCancelEventArgs.cs
- PtsPage.cs
- SafeFileMappingHandle.cs
- LoaderAllocator.cs
- FileUtil.cs
- StandardOleMarshalObject.cs
- COM2FontConverter.cs
- CultureMapper.cs
- SearchForVirtualItemEventArgs.cs
- WpfPayload.cs
- GeneralTransformCollection.cs
- RegexTypeEditor.cs
- TransformPatternIdentifiers.cs
- XmlMemberMapping.cs
- ObjectConverter.cs
- TypeConverterHelper.cs
- MessageEncoderFactory.cs
- DataGridView.cs
- XPathNavigatorKeyComparer.cs
- DrawToolTipEventArgs.cs
- Comparer.cs
- HostingEnvironment.cs
- AuthStoreRoleProvider.cs
- Rotation3D.cs
- EntitySetRetriever.cs
- Delegate.cs
- DefaultShape.cs
- CharAnimationBase.cs
- handlecollector.cs
- TextRunCache.cs
- SqlProfileProvider.cs
- Run.cs
- AnimationClock.cs
- WebBrowserNavigatingEventHandler.cs
- SqlDataSourceView.cs
- DefaultCommandExtensionCallback.cs
- VirtualPathProvider.cs
- FilteredXmlReader.cs
- CachedFontFace.cs
- SqlStatistics.cs
- MouseGestureValueSerializer.cs
- Decoder.cs
- MimeMultiPart.cs
- WebDisplayNameAttribute.cs
- JsonWriterDelegator.cs
- ZipIOCentralDirectoryFileHeader.cs
- ThemeDirectoryCompiler.cs
- InternalMappingException.cs
- GridViewRowEventArgs.cs
- ComponentCodeDomSerializer.cs