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
- ColorPalette.cs
- PolicyStatement.cs
- BStrWrapper.cs
- NegatedConstant.cs
- FlowNode.cs
- ProfileInfo.cs
- DataServiceConfiguration.cs
- ConfigurationLocationCollection.cs
- SurrogateDataContract.cs
- PreviousTrackingServiceAttribute.cs
- ScriptReferenceBase.cs
- TreeIterator.cs
- BmpBitmapDecoder.cs
- WebBrowserProgressChangedEventHandler.cs
- MetadataImporter.cs
- SelectionGlyph.cs
- ItemType.cs
- GeneralTransform3D.cs
- RelationshipNavigation.cs
- CodeDefaultValueExpression.cs
- InkCanvasFeedbackAdorner.cs
- HorizontalAlignConverter.cs
- WebColorConverter.cs
- OledbConnectionStringbuilder.cs
- ApplicationFileParser.cs
- SqlDataSourceCommandParser.cs
- UTF8Encoding.cs
- JsonByteArrayDataContract.cs
- FormatterConverter.cs
- MobileTextWriter.cs
- SessionViewState.cs
- HighContrastHelper.cs
- coordinator.cs
- ZipPackage.cs
- FileLogRecord.cs
- WebControlAdapter.cs
- SspiNegotiationTokenAuthenticatorState.cs
- InteropEnvironment.cs
- SspiSafeHandles.cs
- LineMetrics.cs
- DecoderExceptionFallback.cs
- FragmentQueryKB.cs
- SocketInformation.cs
- HttpListenerContext.cs
- SqlWebEventProvider.cs
- AsyncInvokeOperation.cs
- Oci.cs
- NamedElement.cs
- TextDecoration.cs
- WeakReadOnlyCollection.cs
- LinkedResourceCollection.cs
- WindowsTab.cs
- ApplicationBuildProvider.cs
- DbConnectionFactory.cs
- Ray3DHitTestResult.cs
- Char.cs
- InvokeGenerator.cs
- GeneralTransform3DGroup.cs
- JsonWriter.cs
- ControlUtil.cs
- FaultDesigner.cs
- BCLDebug.cs
- WsatConfiguration.cs
- ResourceManager.cs
- Latin1Encoding.cs
- DrawingGroupDrawingContext.cs
- ColumnProvider.cs
- StaticDataManager.cs
- ResXResourceWriter.cs
- FixedPageAutomationPeer.cs
- WebScriptMetadataFormatter.cs
- WebPartConnectionCollection.cs
- GeometryDrawing.cs
- SystemIPv4InterfaceProperties.cs
- WebCategoryAttribute.cs
- BitmapMetadata.cs
- DayRenderEvent.cs
- ProfileModule.cs
- VectorValueSerializer.cs
- ObjectDataSourceChooseTypePanel.cs
- WebZone.cs
- ObjectPropertyMapping.cs
- Stream.cs
- ConfigsHelper.cs
- GridViewDeleteEventArgs.cs
- BasicExpressionVisitor.cs
- SymbolMethod.cs
- PackagingUtilities.cs
- TraversalRequest.cs
- AspNetHostingPermission.cs
- Logging.cs
- EditingCommands.cs
- SessionEndedEventArgs.cs
- ProtocolViolationException.cs
- SelectedGridItemChangedEvent.cs
- DataServiceContext.cs
- MessageQueueKey.cs
- DesignerActionList.cs
- FontStyles.cs
- DbConnectionClosed.cs