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
- DesigntimeLicenseContextSerializer.cs
- FloaterParaClient.cs
- httpstaticobjectscollection.cs
- TimeSpanStorage.cs
- SelectionWordBreaker.cs
- ImageDesigner.cs
- ConvertersCollection.cs
- DataFormat.cs
- ValidationSummary.cs
- AppliedDeviceFiltersDialog.cs
- ColorAnimationBase.cs
- HtmlGenericControl.cs
- ConnectivityStatus.cs
- TdsValueSetter.cs
- PrtCap_Base.cs
- ParallelActivityDesigner.cs
- ImpersonationContext.cs
- IIS7UserPrincipal.cs
- RequestTimeoutManager.cs
- ObfuscateAssemblyAttribute.cs
- UICuesEvent.cs
- DeferrableContent.cs
- XmlSchema.cs
- SafeFindHandle.cs
- Transform.cs
- WebDescriptionAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- IgnoreFlushAndCloseStream.cs
- AppSettingsReader.cs
- CreateSequenceResponse.cs
- ListViewItemMouseHoverEvent.cs
- AsnEncodedData.cs
- StrokeCollection.cs
- _Events.cs
- CapabilitiesSection.cs
- Scripts.cs
- NamespaceInfo.cs
- InfoCardBaseException.cs
- SafeHGlobalHandleCritical.cs
- backend.cs
- _Semaphore.cs
- XmlSchemaObjectCollection.cs
- AmbiguousMatchException.cs
- DiagnosticTrace.cs
- SQLDateTime.cs
- EventHandlersStore.cs
- RequestCachingSection.cs
- GeneralTransformGroup.cs
- StringExpressionSet.cs
- WindowsGraphicsCacheManager.cs
- SystemGatewayIPAddressInformation.cs
- ForeignKeyFactory.cs
- PropertyValidationContext.cs
- RepeaterItem.cs
- EdmTypeAttribute.cs
- DesignerCategoryAttribute.cs
- CommandField.cs
- httpserverutility.cs
- BitmapEffectInput.cs
- BinHexEncoder.cs
- PrefixQName.cs
- ColorDialog.cs
- WebPartTransformer.cs
- BuildResult.cs
- LogicalExpr.cs
- BeginStoryboard.cs
- HttpCacheVaryByContentEncodings.cs
- SimpleRecyclingCache.cs
- SkipQueryOptionExpression.cs
- TextEffect.cs
- WindowsFormsSynchronizationContext.cs
- CompilerTypeWithParams.cs
- TimeSpan.cs
- Columns.cs
- RegexRunnerFactory.cs
- DbProviderManifest.cs
- ContentOperations.cs
- RC2CryptoServiceProvider.cs
- StructuredTypeInfo.cs
- XPathSelfQuery.cs
- NavigationFailedEventArgs.cs
- ToolStripPanelRow.cs
- ThumbButtonInfoCollection.cs
- DataGridRow.cs
- Ipv6Element.cs
- ApplicationSecurityInfo.cs
- FrameworkElementFactoryMarkupObject.cs
- PrimitiveSchema.cs
- MarkupProperty.cs
- Region.cs
- RuntimeCompatibilityAttribute.cs
- ProviderConnectionPoint.cs
- DateTimeValueSerializer.cs
- AdornerDecorator.cs
- ResizeGrip.cs
- SqlDataSourceSelectingEventArgs.cs
- XmlNavigatorStack.cs
- HealthMonitoringSection.cs
- UserControl.cs
- Ppl.cs