Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SignatureConfirmations.cs / 1 / SignatureConfirmations.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Security { using System; class SignatureConfirmations { SignatureConfirmation[] confirmations; int length; bool encrypted; struct SignatureConfirmation { public byte[] value; public SignatureConfirmation(byte[] value) { this.value = value; } } public SignatureConfirmations() { confirmations = new SignatureConfirmation[1]; length = 0; } public int Count { get { return length; } } public void AddConfirmation(byte[] value, bool encrypted) { if (confirmations.Length == length) { SignatureConfirmation[] newConfirmations = new SignatureConfirmation[length*2]; Array.Copy(confirmations, 0, newConfirmations, 0, length); confirmations = newConfirmations; } confirmations[length] = new SignatureConfirmation(value); ++length; this.encrypted |= encrypted; } public void GetConfirmation(int index, out byte[] value, out bool encrypted) { if (index < 0 || index >= length) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", SR.GetString(SR.ValueMustBeInRange, 0, length))); } value = confirmations[index].value; encrypted = this.encrypted; } public bool IsMarkedForEncryption { get { return this.encrypted; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BrowserCapabilitiesFactoryBase.cs
- GridLengthConverter.cs
- RetrieveVirtualItemEventArgs.cs
- Point3DCollection.cs
- DataRowView.cs
- ErrorFormatter.cs
- ArgumentNullException.cs
- Stack.cs
- AspNetRouteServiceHttpHandler.cs
- SrgsRule.cs
- streamingZipPartStream.cs
- ConstraintStruct.cs
- SemanticBasicElement.cs
- DataGridLinkButton.cs
- documentsequencetextcontainer.cs
- WebBrowserNavigatingEventHandler.cs
- Parallel.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WindowsScrollBar.cs
- DataGridRelationshipRow.cs
- EmbeddedMailObjectsCollection.cs
- InProcStateClientManager.cs
- MenuAutoFormat.cs
- MappingSource.cs
- AbstractDataSvcMapFileLoader.cs
- GridViewSortEventArgs.cs
- NullableLongMinMaxAggregationOperator.cs
- TdsParserStaticMethods.cs
- URLIdentityPermission.cs
- SchemaNames.cs
- BooleanConverter.cs
- OutputCacheProfileCollection.cs
- SqlFactory.cs
- ObjectNavigationPropertyMapping.cs
- SchemaReference.cs
- ToolStripContentPanel.cs
- DateTimeOffsetStorage.cs
- Identity.cs
- CustomAttributeFormatException.cs
- RegexReplacement.cs
- InternalBufferManager.cs
- filewebrequest.cs
- SimpleApplicationHost.cs
- SchemaConstraints.cs
- PropVariant.cs
- ZipIOCentralDirectoryFileHeader.cs
- RichTextBoxAutomationPeer.cs
- QueryableFilterRepeater.cs
- TextReader.cs
- BindingManagerDataErrorEventArgs.cs
- DependencyPropertyChangedEventArgs.cs
- ArgumentOutOfRangeException.cs
- TaskFormBase.cs
- DesignerVerbCollection.cs
- TextEffect.cs
- TreeWalkHelper.cs
- UserValidatedEventArgs.cs
- MultiPartWriter.cs
- SqlStatistics.cs
- Panel.cs
- PathGeometry.cs
- VisualCollection.cs
- Transform3D.cs
- XmlComplianceUtil.cs
- RootAction.cs
- autovalidator.cs
- __Filters.cs
- WindowsListView.cs
- CanExpandCollapseAllConverter.cs
- RuntimeUtils.cs
- UInt64Storage.cs
- XmlReader.cs
- ContractsBCL.cs
- Effect.cs
- WindowPattern.cs
- WebInvokeAttribute.cs
- SqlCommandSet.cs
- BlurEffect.cs
- SoapIgnoreAttribute.cs
- SoapHeader.cs
- WindowsSysHeader.cs
- HashMembershipCondition.cs
- SmiMetaDataProperty.cs
- ListBindingConverter.cs
- XmlSchemaExporter.cs
- UInt32Storage.cs
- ObjectStateEntry.cs
- FontUnitConverter.cs
- RoleManagerEventArgs.cs
- FormsAuthenticationConfiguration.cs
- UniqueEventHelper.cs
- FlowLayoutPanelDesigner.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TraceXPathNavigator.cs
- TextElementEnumerator.cs
- TextRangeEditLists.cs
- SimpleHandlerBuildProvider.cs
- AuthenticationModuleElement.cs
- Int32Rect.cs
- SafeFindHandle.cs