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
- IChannel.cs
- RowType.cs
- InvalidPropValue.cs
- DirectoryLocalQuery.cs
- FontStyles.cs
- DataGridViewSortCompareEventArgs.cs
- MissingSatelliteAssemblyException.cs
- SamlSubjectStatement.cs
- DrawingAttributes.cs
- BinaryFormatterWriter.cs
- GenericEnumConverter.cs
- _FtpControlStream.cs
- CollectionChangedEventManager.cs
- SchemaImporter.cs
- WebPartsPersonalizationAuthorization.cs
- DataGridViewTextBoxEditingControl.cs
- ServiceRoute.cs
- HtmlTableRow.cs
- LocalizableAttribute.cs
- XPathDocumentIterator.cs
- HttpFileCollection.cs
- XmlIgnoreAttribute.cs
- MonthChangedEventArgs.cs
- Socket.cs
- PageParserFilter.cs
- ToolboxService.cs
- MenuItem.cs
- DependencyPropertyValueSerializer.cs
- HierarchicalDataBoundControl.cs
- RowVisual.cs
- SqlParameter.cs
- HeaderUtility.cs
- MembershipPasswordException.cs
- CriticalHandle.cs
- RemotingConfigParser.cs
- KeyBinding.cs
- QuotedPrintableStream.cs
- CatalogZoneDesigner.cs
- Subtract.cs
- SafeFileMappingHandle.cs
- GB18030Encoding.cs
- DataGridViewColumn.cs
- ThreadInterruptedException.cs
- TimeSpanSecondsConverter.cs
- XDeferredAxisSource.cs
- WebSysDisplayNameAttribute.cs
- DataTransferEventArgs.cs
- Profiler.cs
- BinaryNode.cs
- StorageEndPropertyMapping.cs
- MetadataCacheItem.cs
- Form.cs
- XmlSchemaIdentityConstraint.cs
- ReflectEventDescriptor.cs
- MessageQueueAccessControlEntry.cs
- DataTableNewRowEvent.cs
- StringUtil.cs
- DigitShape.cs
- Token.cs
- DefaultBinder.cs
- PropertyDescriptorCollection.cs
- OptimalBreakSession.cs
- codemethodreferenceexpression.cs
- JsonStringDataContract.cs
- MimeTypeMapper.cs
- UnsafeNativeMethodsCLR.cs
- MarkupCompilePass1.cs
- FilePresentation.cs
- WpfGeneratedKnownTypes.cs
- ILGenerator.cs
- COM2PropertyBuilderUITypeEditor.cs
- XmlSerializationReader.cs
- SecurityDescriptor.cs
- CodePageUtils.cs
- SQLMoney.cs
- FreezableDefaultValueFactory.cs
- DeviceContext2.cs
- ListGeneralPage.cs
- SqlDataSourceFilteringEventArgs.cs
- MembershipPasswordException.cs
- CachedPathData.cs
- CounterCreationData.cs
- DbCommandTree.cs
- DataGridClipboardCellContent.cs
- WindowsTitleBar.cs
- ScaleTransform3D.cs
- ExternalFile.cs
- FrameworkRichTextComposition.cs
- NavigationPropertyAccessor.cs
- SimpleColumnProvider.cs
- SqlConnectionStringBuilder.cs
- CmsInterop.cs
- XmlSchemaInfo.cs
- WebControlAdapter.cs
- ContainerTracking.cs
- ObjectItemAssemblyLoader.cs
- MetadataFile.cs
- ClassHandlersStore.cs
- MessageContractMemberAttribute.cs
- XslVisitor.cs