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
- ButtonFlatAdapter.cs
- RequiredAttributeAttribute.cs
- ErrorWebPart.cs
- FormatVersion.cs
- ReliableChannelFactory.cs
- FixedPageAutomationPeer.cs
- CipherData.cs
- DrawingAttributes.cs
- ValidatingPropertiesEventArgs.cs
- SHA512.cs
- PreProcessInputEventArgs.cs
- TypeBuilderInstantiation.cs
- BamlTreeNode.cs
- DesignerCategoryAttribute.cs
- ParameterBuilder.cs
- SendMailErrorEventArgs.cs
- IteratorDescriptor.cs
- SByteStorage.cs
- XDRSchema.cs
- TypeDescriptionProvider.cs
- MultiTouchSystemGestureLogic.cs
- BaseCodePageEncoding.cs
- RegexCaptureCollection.cs
- FocusTracker.cs
- ArgumentDirectionHelper.cs
- XmlNamespaceMapping.cs
- ProcessHostMapPath.cs
- FixedHighlight.cs
- ValueTypeFixupInfo.cs
- XPathDocumentNavigator.cs
- ConnectionAcceptor.cs
- XmlSchemaProviderAttribute.cs
- WmlPhoneCallAdapter.cs
- GenericsNotImplementedException.cs
- _Events.cs
- MaskInputRejectedEventArgs.cs
- WebHttpDispatchOperationSelectorData.cs
- mediaeventshelper.cs
- EditCommandColumn.cs
- WebPartConnectionsEventArgs.cs
- TypographyProperties.cs
- ThreadAbortException.cs
- InvalidPropValue.cs
- XmlDocumentType.cs
- RootBrowserWindowProxy.cs
- LineVisual.cs
- CqlIdentifiers.cs
- BaseResourcesBuildProvider.cs
- ScriptServiceAttribute.cs
- UrlMappingCollection.cs
- CriticalHandle.cs
- control.ime.cs
- TemplateXamlParser.cs
- WebPartUserCapability.cs
- RegexTree.cs
- MeshGeometry3D.cs
- UnsignedPublishLicense.cs
- WindowsAuthenticationEventArgs.cs
- ConfigurationPropertyAttribute.cs
- MatchingStyle.cs
- SystemIPGlobalStatistics.cs
- DbProviderManifest.cs
- DesignerLinkAdapter.cs
- DeviceContexts.cs
- PackagingUtilities.cs
- Model3D.cs
- TraceSource.cs
- EncodingDataItem.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ProviderConnectionPointCollection.cs
- DataGridDesigner.cs
- ConfigurationElementCollection.cs
- FontFamily.cs
- XmlDocumentFieldSchema.cs
- OleDbParameter.cs
- SqlAggregateChecker.cs
- ArrayWithOffset.cs
- HttpCacheVaryByContentEncodings.cs
- dataobject.cs
- COM2ExtendedUITypeEditor.cs
- StringBuilder.cs
- ThaiBuddhistCalendar.cs
- XmlSchemaAttribute.cs
- InstanceDescriptor.cs
- DesignerObjectListAdapter.cs
- TimeSpanStorage.cs
- ComponentEditorPage.cs
- FormConverter.cs
- XmlSerializationReader.cs
- FontCollection.cs
- SqlDataSourceWizardForm.cs
- OracleLob.cs
- TimeoutHelper.cs
- SamlNameIdentifierClaimResource.cs
- BitmapImage.cs
- TextParentUndoUnit.cs
- DLinqAssociationProvider.cs
- DataGridViewCellStyleEditor.cs
- DoubleCollectionValueSerializer.cs
- ElementMarkupObject.cs