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
- LeafCellTreeNode.cs
- SpecialNameAttribute.cs
- OpenTypeCommon.cs
- SqlAliasesReferenced.cs
- _AutoWebProxyScriptEngine.cs
- EntityStoreSchemaGenerator.cs
- ExchangeUtilities.cs
- XmlValueConverter.cs
- FrameworkContentElement.cs
- AdRotator.cs
- HttpCachePolicyElement.cs
- Part.cs
- TranslateTransform3D.cs
- MissingManifestResourceException.cs
- DiscreteKeyFrames.cs
- AnchorEditor.cs
- GeometryGroup.cs
- BuilderPropertyEntry.cs
- TreeNodeStyle.cs
- ConfigurationValue.cs
- MessageHeaderDescription.cs
- TransformCollection.cs
- DbConnectionStringCommon.cs
- UrlPath.cs
- CommonDialog.cs
- ServiceMoniker.cs
- Msec.cs
- MaskInputRejectedEventArgs.cs
- DetailsViewPageEventArgs.cs
- BasePattern.cs
- XPathNodePointer.cs
- ProfileSection.cs
- StringBuilder.cs
- StringDictionary.cs
- XmlCDATASection.cs
- DataContract.cs
- Table.cs
- TypeConverterBase.cs
- ConditionalAttribute.cs
- FilteredXmlReader.cs
- ProfileManager.cs
- ControlAdapter.cs
- ClientScriptItemCollection.cs
- TracedNativeMethods.cs
- GiveFeedbackEvent.cs
- DataTable.cs
- ComUdtElement.cs
- SafeSystemMetrics.cs
- SqlCommandBuilder.cs
- EdmTypeAttribute.cs
- TableLayoutColumnStyleCollection.cs
- SplitContainer.cs
- ToolBarOverflowPanel.cs
- FloaterParagraph.cs
- FontNamesConverter.cs
- SafeProcessHandle.cs
- FontStyleConverter.cs
- CalendarKeyboardHelper.cs
- AuthStoreRoleProvider.cs
- OleDbEnumerator.cs
- PropertyGeneratedEventArgs.cs
- TranslateTransform3D.cs
- CultureMapper.cs
- StrokeFIndices.cs
- TextEditorThreadLocalStore.cs
- FilterQuery.cs
- DateTimeConstantAttribute.cs
- TdsEnums.cs
- DataKey.cs
- CompositeDataBoundControl.cs
- BulletDecorator.cs
- QueryExpression.cs
- SiteMapSection.cs
- ExceptionCollection.cs
- HotSpotCollection.cs
- SqlPersistenceProviderFactory.cs
- EventNotify.cs
- RemoteWebConfigurationHost.cs
- DesignTimeValidationFeature.cs
- CanExecuteRoutedEventArgs.cs
- UrlMappingsModule.cs
- CodeTypeDeclaration.cs
- Attributes.cs
- C14NUtil.cs
- StylusLogic.cs
- ContourSegment.cs
- PropertyValueChangedEvent.cs
- SamlConditions.cs
- ProfileEventArgs.cs
- RegexCode.cs
- UInt64.cs
- SelectionPattern.cs
- GetPageCompletedEventArgs.cs
- EncryptedData.cs
- TextEditorSelection.cs
- TypeListConverter.cs
- MobileControlsSection.cs
- XmlTypeMapping.cs
- SystemColorTracker.cs
- RangeValuePatternIdentifiers.cs