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
- InstanceData.cs
- PropertyMapper.cs
- MasterPageBuildProvider.cs
- ObjectDisposedException.cs
- SiteMapHierarchicalDataSourceView.cs
- RemoteWebConfigurationHostServer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- InkCanvasAutomationPeer.cs
- RealProxy.cs
- TextDecorationUnitValidation.cs
- BasicBrowserDialog.cs
- ServiceOperationParameter.cs
- ConstraintEnumerator.cs
- LogStore.cs
- CorePropertiesFilter.cs
- Attributes.cs
- StylusPlugInCollection.cs
- HashStream.cs
- ArcSegment.cs
- FloatAverageAggregationOperator.cs
- ValidationSummary.cs
- ExceptionHelpers.cs
- KeyNotFoundException.cs
- EditBehavior.cs
- TranslateTransform3D.cs
- RoutedEventValueSerializer.cs
- Paragraph.cs
- EventLogger.cs
- DataGridViewCheckBoxCell.cs
- AttachedPropertiesService.cs
- LineSegment.cs
- TableRowCollection.cs
- CodeTypeReference.cs
- Base64Stream.cs
- FacetEnabledSchemaElement.cs
- HatchBrush.cs
- PropertyPathConverter.cs
- ImageAutomationPeer.cs
- Set.cs
- BuiltInExpr.cs
- PowerModeChangedEventArgs.cs
- OutputCacheModule.cs
- BinaryParser.cs
- WebPartActionVerb.cs
- FirstMatchCodeGroup.cs
- Compiler.cs
- ErrorFormatterPage.cs
- CompositeActivityCodeGenerator.cs
- EdmError.cs
- AdPostCacheSubstitution.cs
- ExtensionSimplifierMarkupObject.cs
- NewItemsContextMenuStrip.cs
- TargetException.cs
- Exceptions.cs
- XamlPointCollectionSerializer.cs
- HandlerMappingMemo.cs
- Quaternion.cs
- HtmlEncodedRawTextWriter.cs
- BoolExpressionVisitors.cs
- CodeLinePragma.cs
- CodePrimitiveExpression.cs
- ToolStripGripRenderEventArgs.cs
- DataControlPagerLinkButton.cs
- Transform.cs
- _ContextAwareResult.cs
- JsonStringDataContract.cs
- CancellationTokenSource.cs
- VerificationAttribute.cs
- X509Certificate2Collection.cs
- MessageQueueAccessControlEntry.cs
- Accessible.cs
- DropDownButton.cs
- UseAttributeSetsAction.cs
- LineMetrics.cs
- ServiceMemoryGates.cs
- BamlStream.cs
- ByeMessageCD1.cs
- EntityDesignerBuildProvider.cs
- StatusBar.cs
- AutomationFocusChangedEventArgs.cs
- QueryContinueDragEvent.cs
- AudioLevelUpdatedEventArgs.cs
- ComponentEvent.cs
- GlyphingCache.cs
- ConnectionManagementElementCollection.cs
- _SecureChannel.cs
- SharedStatics.cs
- Style.cs
- PolygonHotSpot.cs
- ObjectIDGenerator.cs
- IntranetCredentialPolicy.cs
- ConstantExpression.cs
- Validator.cs
- AsyncResult.cs
- QilScopedVisitor.cs
- SecureUICommand.cs
- DbConnectionInternal.cs
- OperationResponse.cs
- AnchorEditor.cs
- PackageDigitalSignature.cs