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
- HashHelper.cs
- XmlSchemaFacet.cs
- KerberosReceiverSecurityToken.cs
- Blend.cs
- ListItemsCollectionEditor.cs
- BulletedListEventArgs.cs
- XmlQueryCardinality.cs
- ComponentChangingEvent.cs
- IssuedSecurityTokenProvider.cs
- JsonEncodingStreamWrapper.cs
- SignatureHelper.cs
- XsdValidatingReader.cs
- GeometryGroup.cs
- ToolStripDropDownButton.cs
- CalloutQueueItem.cs
- LogStore.cs
- ProcessManager.cs
- TogglePattern.cs
- DataGridViewTextBoxCell.cs
- DataGridViewCellStateChangedEventArgs.cs
- InputManager.cs
- TimeSpanStorage.cs
- XmlILConstructAnalyzer.cs
- UnmanagedBitmapWrapper.cs
- ControlBuilderAttribute.cs
- DirectionalLight.cs
- RenderingBiasValidation.cs
- DeferredElementTreeState.cs
- WindowsFormsLinkLabel.cs
- AutoCompleteStringCollection.cs
- KoreanCalendar.cs
- SafeArrayRankMismatchException.cs
- StructuredType.cs
- TypeResolver.cs
- HScrollProperties.cs
- MatchingStyle.cs
- CodeAttributeArgument.cs
- TraceLog.cs
- BindingWorker.cs
- HttpChannelHelpers.cs
- LockCookie.cs
- ApplicationContext.cs
- RankException.cs
- AcceleratedTokenProviderState.cs
- GlobalizationAssembly.cs
- MenuItemBinding.cs
- MarshalByValueComponent.cs
- TimelineClockCollection.cs
- EventHandlersStore.cs
- ContractMapping.cs
- CharacterHit.cs
- Clipboard.cs
- HtmlImage.cs
- MessageQueueKey.cs
- Timeline.cs
- InvalidCommandTreeException.cs
- FormsAuthentication.cs
- SystemInfo.cs
- SqlServices.cs
- HebrewNumber.cs
- CodeTypeMember.cs
- ModuleElement.cs
- MetadataSerializer.cs
- PropertyDescriptorGridEntry.cs
- SelectionListDesigner.cs
- Validator.cs
- UidManager.cs
- BitmapEffectGroup.cs
- PreviewPageInfo.cs
- SchemaObjectWriter.cs
- TableChangeProcessor.cs
- SemanticTag.cs
- RefType.cs
- QuotedStringWriteStateInfo.cs
- PrePostDescendentsWalker.cs
- Sentence.cs
- _ProxyChain.cs
- DataColumnMappingCollection.cs
- ToolStripItemRenderEventArgs.cs
- Encoder.cs
- Merger.cs
- IndexerHelper.cs
- EditorPartChrome.cs
- JulianCalendar.cs
- WindowsListViewScroll.cs
- HttpModulesSection.cs
- GraphicsPath.cs
- DesignerVerb.cs
- GroupDescription.cs
- FragmentQuery.cs
- Rfc2898DeriveBytes.cs
- DiagnosticsConfigurationHandler.cs
- ScrollChrome.cs
- PrintControllerWithStatusDialog.cs
- ApplicationDirectory.cs
- ImportCatalogPart.cs
- SaveWorkflowCommand.cs
- InstanceCreationEditor.cs
- MediaElementAutomationPeer.cs
- ObsoleteAttribute.cs