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
- XmlHierarchicalDataSourceView.cs
- RunWorkerCompletedEventArgs.cs
- TransformConverter.cs
- WinEventQueueItem.cs
- InboundActivityHelper.cs
- DeadCharTextComposition.cs
- PointCollectionValueSerializer.cs
- HtmlPageAdapter.cs
- DispatcherProcessingDisabled.cs
- CollectionViewGroupRoot.cs
- ToggleProviderWrapper.cs
- Math.cs
- WindowsToolbarItemAsMenuItem.cs
- DrawListViewSubItemEventArgs.cs
- SafeArrayRankMismatchException.cs
- AsynchronousChannel.cs
- WorkflowMarkupSerializationProvider.cs
- DeviceOverridableAttribute.cs
- TypeDelegator.cs
- WebFaultClientMessageInspector.cs
- PriorityBinding.cs
- DataGridViewCellStyleEditor.cs
- MenuCommandService.cs
- CircleHotSpot.cs
- UnmanagedMemoryStreamWrapper.cs
- KeyGestureValueSerializer.cs
- ResourceSet.cs
- PropertyKey.cs
- ScalarRestriction.cs
- Model3DCollection.cs
- CheckBox.cs
- TextWriterTraceListener.cs
- ECDiffieHellmanPublicKey.cs
- ThreadExceptionEvent.cs
- TdsParserSafeHandles.cs
- CompositeScriptReference.cs
- UpDownBase.cs
- ListItemCollection.cs
- InternalConfigRoot.cs
- SQLMoneyStorage.cs
- HtmlShim.cs
- UnmanagedBitmapWrapper.cs
- SafeSecurityHelper.cs
- SQLInt16Storage.cs
- WebDescriptionAttribute.cs
- ItemsControl.cs
- DataGridViewCellEventArgs.cs
- PropertyGeneratedEventArgs.cs
- XmlSchemaNotation.cs
- RegisteredExpandoAttribute.cs
- DateTimePicker.cs
- connectionpool.cs
- Image.cs
- COAUTHIDENTITY.cs
- StrokeCollectionConverter.cs
- FormView.cs
- RayMeshGeometry3DHitTestResult.cs
- CollectionViewGroup.cs
- DataListItemCollection.cs
- TypeBuilderInstantiation.cs
- StateMachineSubscriptionManager.cs
- XmlDomTextWriter.cs
- IdlingCommunicationPool.cs
- StrokeSerializer.cs
- PageAsyncTask.cs
- OracleDataAdapter.cs
- MD5CryptoServiceProvider.cs
- ModelUIElement3D.cs
- InternalResources.cs
- ListBoxAutomationPeer.cs
- XmlLanguageConverter.cs
- PerformanceCountersElement.cs
- MenuItemBindingCollection.cs
- UnsafeNetInfoNativeMethods.cs
- NativeMethods.cs
- CapabilitiesUse.cs
- HttpRawResponse.cs
- MergablePropertyAttribute.cs
- XmlFormatWriterGenerator.cs
- GrammarBuilderBase.cs
- IOThreadTimer.cs
- ProxyGenerationError.cs
- ValidationRuleCollection.cs
- Component.cs
- ObjectDataSourceFilteringEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- DiffuseMaterial.cs
- CursorInteropHelper.cs
- SettingsPropertyCollection.cs
- Compiler.cs
- HtmlTernaryTree.cs
- AssemblyName.cs
- FontStyle.cs
- TextElementCollectionHelper.cs
- TypeResolvingOptionsAttribute.cs
- FigureParagraph.cs
- XmlnsPrefixAttribute.cs
- MulticastDelegate.cs
- SocketException.cs
- Int32.cs