Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / SymmetricCryptoHandle.cs / 1305376 / SymmetricCryptoHandle.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; // // Summary: // Wraps an SymmetricCryptoSession. // internal class SymmetricCryptoHandle : ProofTokenCryptoHandle { public SymmetricCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr parameters ) : base( nativeHandle, expiration, parameters, typeof( RpcSymmetricCryptoParameters ) ) { } private SymmetricCryptoHandle( InternalRefCountedHandle internalHandle ) : base( internalHandle ) {} protected override CryptoHandle OnDuplicate() { return new SymmetricCryptoHandle( 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; // // Summary: // Wraps an SymmetricCryptoSession. // internal class SymmetricCryptoHandle : ProofTokenCryptoHandle { public SymmetricCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr parameters ) : base( nativeHandle, expiration, parameters, typeof( RpcSymmetricCryptoParameters ) ) { } private SymmetricCryptoHandle( InternalRefCountedHandle internalHandle ) : base( internalHandle ) {} protected override CryptoHandle OnDuplicate() { return new SymmetricCryptoHandle( 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
- WaitHandle.cs
- WizardForm.cs
- CompilerScopeManager.cs
- HttpHandlersSection.cs
- DictionarySurrogate.cs
- WebPartConnection.cs
- MessageDroppedTraceRecord.cs
- FileNotFoundException.cs
- XamlDesignerSerializationManager.cs
- DecoratedNameAttribute.cs
- AdapterDictionary.cs
- XmlSchemaChoice.cs
- XmlFormatReaderGenerator.cs
- HostProtectionPermission.cs
- FixedDocumentPaginator.cs
- CodeFieldReferenceExpression.cs
- XmlQueryCardinality.cs
- WebPartConnectionsCancelVerb.cs
- BezierSegment.cs
- GridViewSortEventArgs.cs
- BitmapCodecInfoInternal.cs
- XmlDataCollection.cs
- ScrollContentPresenter.cs
- SqlDataSourceQueryEditorForm.cs
- DataGridViewAddColumnDialog.cs
- ThaiBuddhistCalendar.cs
- HandlerWithFactory.cs
- BitmapMetadata.cs
- DiscoveryDocumentReference.cs
- WebSysDisplayNameAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- TransactionScope.cs
- DataSourceSerializationException.cs
- InvalidPropValue.cs
- XmlEncoding.cs
- InputProviderSite.cs
- WebPartZoneCollection.cs
- PerformanceCounterPermissionEntry.cs
- WebBrowserSiteBase.cs
- TextEditorMouse.cs
- PropertyToken.cs
- HatchBrush.cs
- CFGGrammar.cs
- Bezier.cs
- HttpClientProtocol.cs
- ServiceChannelManager.cs
- InvalidProgramException.cs
- ConfigurationElementProperty.cs
- XmlArrayAttribute.cs
- TextDecorationCollection.cs
- PolyBezierSegment.cs
- HostSecurityManager.cs
- AtomParser.cs
- NavigationProgressEventArgs.cs
- XmlElementAttributes.cs
- SslSecurityTokenParameters.cs
- ArrayHelper.cs
- XmlQueryOutput.cs
- SafeNativeMemoryHandle.cs
- BitmapCodecInfo.cs
- AuthenticationSection.cs
- Point3DCollection.cs
- UpdateTracker.cs
- TextTreeFixupNode.cs
- SQLBoolean.cs
- StringToken.cs
- AcceleratedTokenProviderState.cs
- RouteParameter.cs
- ParameterToken.cs
- ProjectionPathBuilder.cs
- RC2CryptoServiceProvider.cs
- XmlSiteMapProvider.cs
- XmlNodeChangedEventArgs.cs
- MembershipValidatePasswordEventArgs.cs
- HttpRuntime.cs
- FragmentNavigationEventArgs.cs
- LocalizationComments.cs
- AssemblyHash.cs
- DiscoveryDocumentSearchPattern.cs
- PathTooLongException.cs
- DtcInterfaces.cs
- HandlerBase.cs
- SamlSecurityTokenAuthenticator.cs
- ToolboxItemWrapper.cs
- ObjectListGeneralPage.cs
- XmlExtensionFunction.cs
- DefaultPrintController.cs
- NamedPipeAppDomainProtocolHandler.cs
- EncoderParameters.cs
- ReferenceService.cs
- NaturalLanguageHyphenator.cs
- TextEvent.cs
- EncodingDataItem.cs
- _ListenerResponseStream.cs
- ResourceKey.cs
- BindUriHelper.cs
- NumberAction.cs
- ClientConfigPaths.cs
- MessageSmuggler.cs
- PathNode.cs