Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / AsymmetricCryptoHandle.cs / 1305376 / AsymmetricCryptoHandle.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Runtime.InteropServices; using System.Threading; using IDT=Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // For common & resources // using Microsoft.InfoCards; // // Summary: // Wraps an AsymmetricCryptoSession. // internal class AsymmetricCryptoHandle : ProofTokenCryptoHandle { public AsymmetricCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr parameters ) : base( nativeHandle, expiration, parameters, typeof( RpcAsymmetricCryptoParameters ) ) { } private AsymmetricCryptoHandle( InternalRefCountedHandle internalHandle ) : base( internalHandle ) {} protected override CryptoHandle OnDuplicate() { return new AsymmetricCryptoHandle( InternalHandle ); } protected override InfoCardProofToken OnCreateProofToken() { return new InfoCardProofToken( this, Expiration ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System; using System.Runtime.InteropServices; using System.Threading; using IDT=Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // For common & resources // using Microsoft.InfoCards; // // Summary: // Wraps an AsymmetricCryptoSession. // internal class AsymmetricCryptoHandle : ProofTokenCryptoHandle { public AsymmetricCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr parameters ) : base( nativeHandle, expiration, parameters, typeof( RpcAsymmetricCryptoParameters ) ) { } private AsymmetricCryptoHandle( InternalRefCountedHandle internalHandle ) : base( internalHandle ) {} protected override CryptoHandle OnDuplicate() { return new AsymmetricCryptoHandle( InternalHandle ); } protected override InfoCardProofToken OnCreateProofToken() { return new InfoCardProofToken( this, Expiration ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpModuleCollection.cs
- TextEditorCharacters.cs
- Part.cs
- Atom10FormatterFactory.cs
- GridViewRowPresenter.cs
- BoolExpression.cs
- ParameterReplacerVisitor.cs
- BooleanAnimationBase.cs
- Util.cs
- PropertyValueUIItem.cs
- FrameworkTemplate.cs
- templategroup.cs
- hwndwrapper.cs
- ProfilePropertyNameValidator.cs
- Query.cs
- BindingExpressionBase.cs
- CmsUtils.cs
- StatusStrip.cs
- SqlDataSourceFilteringEventArgs.cs
- OleDbWrapper.cs
- ToolStrip.cs
- TemplatePropertyEntry.cs
- TemplateManager.cs
- InvokePatternIdentifiers.cs
- TdsParserStateObject.cs
- ComUdtElement.cs
- BinaryNode.cs
- StylusPointProperty.cs
- Deserializer.cs
- FormatterConverter.cs
- ImageKeyConverter.cs
- ControlValuePropertyAttribute.cs
- EncryptedData.cs
- PersonalizablePropertyEntry.cs
- X509AsymmetricSecurityKey.cs
- SelectionChangedEventArgs.cs
- WebControlsSection.cs
- ConfigurationException.cs
- CompilerInfo.cs
- VerticalAlignConverter.cs
- FusionWrap.cs
- Funcletizer.cs
- Token.cs
- SqlCrossApplyToCrossJoin.cs
- PolygonHotSpot.cs
- Trace.cs
- AutomationPropertyInfo.cs
- ExtensibleClassFactory.cs
- TrackingProfileSerializer.cs
- BamlTreeUpdater.cs
- SmiConnection.cs
- BitConverter.cs
- DataGridViewSortCompareEventArgs.cs
- TemplatePropertyEntry.cs
- UrlAuthorizationModule.cs
- StylusCaptureWithinProperty.cs
- Int16KeyFrameCollection.cs
- ProviderManager.cs
- CryptoKeySecurity.cs
- Mouse.cs
- BuildManagerHost.cs
- AutomationAttributeInfo.cs
- EntitySetDataBindingList.cs
- KernelTypeValidation.cs
- ByteKeyFrameCollection.cs
- CatalogPart.cs
- DBBindings.cs
- GraphicsContainer.cs
- Pens.cs
- GeneratedContractType.cs
- SmiRecordBuffer.cs
- ProxyWebPartConnectionCollection.cs
- Rect3DConverter.cs
- FastPropertyAccessor.cs
- UriScheme.cs
- shaperfactoryquerycacheentry.cs
- GroupDescription.cs
- LogEntrySerialization.cs
- XNameTypeConverter.cs
- UnlockInstanceCommand.cs
- ConditionCollection.cs
- DbDeleteCommandTree.cs
- AssemblyNameProxy.cs
- ExpressionValueEditor.cs
- InkSerializer.cs
- XamlFxTrace.cs
- Switch.cs
- SqlConnectionHelper.cs
- ResourceProviderFactory.cs
- Boolean.cs
- SiteMapDataSource.cs
- SubpageParaClient.cs
- QilName.cs
- TransformGroup.cs
- TouchesOverProperty.cs
- MouseOverProperty.cs
- ExpressionEditorAttribute.cs
- ILGenerator.cs
- ProcessProtocolHandler.cs
- RequestCacheEntry.cs