ProofTokenCryptoHandle.cs source code in C# .NET

Source code for the .NET framework in C#

                        

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

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK