Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / infocard / Client / System / IdentityModel / Selectors / ProofTokenCryptoHandle.cs / 1305376 / ProofTokenCryptoHandle.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:
// InfoCardProofTokens can be created from this kind of CryptoHandle.
//
internal abstract class ProofTokenCryptoHandle : CryptoHandle
{
protected ProofTokenCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType )
: base( nativeHandle, expiration, nativeParameters, paramType )
{
}
protected ProofTokenCryptoHandle( InternalRefCountedHandle internalHandle )
: base( internalHandle ) {}
//
// Summary:
// Creates a new InfoCardProofToken from the underlying CryptoHandle.
//
public InfoCardProofToken CreateProofToken()
{
ThrowIfDisposed();
return OnCreateProofToken();
}
//
// Summary:
// Allows subclasses to create their particular proof token.
//
protected abstract InfoCardProofToken OnCreateProofToken();
}
}
// 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:
// InfoCardProofTokens can be created from this kind of CryptoHandle.
//
internal abstract class ProofTokenCryptoHandle : CryptoHandle
{
protected ProofTokenCryptoHandle( InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType )
: base( nativeHandle, expiration, nativeParameters, paramType )
{
}
protected ProofTokenCryptoHandle( InternalRefCountedHandle internalHandle )
: base( internalHandle ) {}
//
// Summary:
// Creates a new InfoCardProofToken from the underlying CryptoHandle.
//
public InfoCardProofToken CreateProofToken()
{
ThrowIfDisposed();
return OnCreateProofToken();
}
//
// Summary:
// Allows subclasses to create their particular proof token.
//
protected abstract InfoCardProofToken OnCreateProofToken();
}
}
// 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
- PermissionToken.cs
- OpCodes.cs
- wpf-etw.cs
- SHA384Managed.cs
- QueueProcessor.cs
- CacheVirtualItemsEvent.cs
- BamlLocalizableResource.cs
- WebPart.cs
- WpfWebRequestHelper.cs
- MemoryPressure.cs
- StreamGeometry.cs
- Int32EqualityComparer.cs
- ConnectionManagementElement.cs
- Function.cs
- SchemaElement.cs
- ModelTreeEnumerator.cs
- ConnectionPointCookie.cs
- OutputScopeManager.cs
- KnowledgeBase.cs
- HtmlElementEventArgs.cs
- DesignerDataTable.cs
- SqlMethodTransformer.cs
- COAUTHINFO.cs
- TableSectionStyle.cs
- XmlDataDocument.cs
- ConfigurationSchemaErrors.cs
- OLEDB_Enum.cs
- ServiceOperationParameter.cs
- BuildProvider.cs
- DynamicPropertyHolder.cs
- PlatformCulture.cs
- ExpandSegment.cs
- PropertyInfo.cs
- UrlMapping.cs
- ClonableStack.cs
- SHA512Managed.cs
- CellParaClient.cs
- SchemaContext.cs
- SqlBulkCopyColumnMapping.cs
- ImplicitInputBrush.cs
- COAUTHINFO.cs
- DataServiceSaveChangesEventArgs.cs
- Ppl.cs
- BitVector32.cs
- WebReferencesBuildProvider.cs
- CalendarDay.cs
- CustomLineCap.cs
- ToolBar.cs
- Label.cs
- ItemChangedEventArgs.cs
- OleDbStruct.cs
- DelegateArgumentReference.cs
- Type.cs
- Lease.cs
- ContextStaticAttribute.cs
- CompleteWizardStep.cs
- ConfigurationElementProperty.cs
- SiteMapSection.cs
- EpmCustomContentSerializer.cs
- StorageComplexPropertyMapping.cs
- EventSourceCreationData.cs
- MemberPath.cs
- Vector3DConverter.cs
- QueryConverter.cs
- MultiTargetingUtil.cs
- Int32RectConverter.cs
- AppearanceEditorPart.cs
- Lease.cs
- ToolStripLocationCancelEventArgs.cs
- IApplicationTrustManager.cs
- CookielessHelper.cs
- WebPageTraceListener.cs
- DependencyPropertyValueSerializer.cs
- ErrorHandler.cs
- EFAssociationProvider.cs
- WebBrowserHelper.cs
- StringDictionary.cs
- EmissiveMaterial.cs
- BasicHttpSecurityMode.cs
- ConfigurationValues.cs
- EdmItemCollection.cs
- MetadataArtifactLoader.cs
- Composition.cs
- SqlProvider.cs
- ResponseBodyWriter.cs
- FormattedText.cs
- ActivityTypeResolver.xaml.cs
- InputLanguageEventArgs.cs
- ListBase.cs
- StringExpressionSet.cs
- UriSection.cs
- UnsafeNativeMethods.cs
- LogStore.cs
- EmptyWorkItem.cs
- SliderAutomationPeer.cs
- CompressEmulationStream.cs
- ErrorStyle.cs
- FormViewUpdatedEventArgs.cs
- ButtonChrome.cs
- _TimerThread.cs