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
- PixelShader.cs
- DockAndAnchorLayout.cs
- DataTrigger.cs
- InstalledFontCollection.cs
- SafeFileHandle.cs
- SemanticTag.cs
- BrowserDefinition.cs
- SchemaName.cs
- Substitution.cs
- Line.cs
- RangeValuePatternIdentifiers.cs
- PropertyDescriptor.cs
- DiagnosticsElement.cs
- SelectManyQueryOperator.cs
- AstNode.cs
- PriorityQueue.cs
- CreateUserWizard.cs
- TraceUtils.cs
- PeerContact.cs
- StoragePropertyMapping.cs
- ProxyWebPartManager.cs
- CompensationDesigner.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- BufferAllocator.cs
- ConnectionPoint.cs
- VersionedStream.cs
- XmlObjectSerializerReadContext.cs
- TargetConverter.cs
- CodeThrowExceptionStatement.cs
- TakeQueryOptionExpression.cs
- Lease.cs
- AnonymousIdentificationModule.cs
- GenerateScriptTypeAttribute.cs
- PrintPageEvent.cs
- InvalidAsynchronousStateException.cs
- HttpModule.cs
- MatrixValueSerializer.cs
- SafeTimerHandle.cs
- DataGridAddNewRow.cs
- EntityExpressionVisitor.cs
- UpdateExpressionVisitor.cs
- StateInitialization.cs
- CharacterBufferReference.cs
- LicenseException.cs
- XmlSchemaAttributeGroup.cs
- PrintingPermissionAttribute.cs
- ParserContext.cs
- MethodExpr.cs
- EntityContainer.cs
- ColumnHeader.cs
- AsyncOperationContext.cs
- ImageSource.cs
- WorkItem.cs
- XmlLanguageConverter.cs
- Matrix3DValueSerializer.cs
- RtfFormatStack.cs
- ScalarRestriction.cs
- MinimizableAttributeTypeConverter.cs
- XPathScanner.cs
- ModelItemDictionaryImpl.cs
- OdbcUtils.cs
- HTTPNotFoundHandler.cs
- NullableDecimalAverageAggregationOperator.cs
- FacetEnabledSchemaElement.cs
- Rect.cs
- GridView.cs
- PropertyRecord.cs
- MaskInputRejectedEventArgs.cs
- UsernameTokenFactoryCredential.cs
- StackSpiller.cs
- TreeView.cs
- GZipStream.cs
- Link.cs
- CustomAttributeBuilder.cs
- XmlSerializationReader.cs
- odbcmetadatacolumnnames.cs
- StringUtil.cs
- SqlError.cs
- FlowDocument.cs
- TransformPattern.cs
- WebBrowserDesigner.cs
- OpenFileDialog.cs
- HttpGetProtocolReflector.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ParserHooks.cs
- SoapTypeAttribute.cs
- CodeGotoStatement.cs
- XmlDocumentType.cs
- DSASignatureFormatter.cs
- TypeUnloadedException.cs
- AnnotationResourceChangedEventArgs.cs
- RectAnimationClockResource.cs
- EndPoint.cs
- ReturnEventArgs.cs
- FrameSecurityDescriptor.cs
- BitmapEffectInput.cs
- Inflater.cs
- CompiledWorkflowDefinitionContext.cs
- Paragraph.cs
- _LocalDataStore.cs