C# Class Internal.Cryptography.Pal.ChainPal

ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BuildChain ( bool useMachineContext, ICertificatePal cert, X509Certificate2Collection extraStore, OidCollection applicationPolicy, OidCollection certificatePolicy, X509RevocationMode revocationMode, X509RevocationFlag revocationFlag, System.DateTime verificationTime, System.TimeSpan timeout ) : IChainPal
Dispose ( ) : void
FromHandle ( IntPtr chainContext ) : IChainPal
ReleaseSafeX509ChainHandle ( IntPtr handle ) : bool
Verify ( X509VerificationFlags flags, Exception &exception ) : bool?

Does not throw on api error. Returns default(bool?) and sets "exception" instead.

Private Methods

Method Description
SaveIntermediateCertificates ( X509ChainElement chainElements, HashSet downloaded ) : void

Method Details

BuildChain() public static method

public static BuildChain ( bool useMachineContext, ICertificatePal cert, X509Certificate2Collection extraStore, OidCollection applicationPolicy, OidCollection certificatePolicy, X509RevocationMode revocationMode, X509RevocationFlag revocationFlag, System.DateTime verificationTime, System.TimeSpan timeout ) : IChainPal
useMachineContext bool
cert ICertificatePal
extraStore System.Security.Cryptography.X509Certificates.X509Certificate2Collection
applicationPolicy System.Security.Cryptography.OidCollection
certificatePolicy System.Security.Cryptography.OidCollection
revocationMode X509RevocationMode
revocationFlag X509RevocationFlag
verificationTime System.DateTime
timeout System.TimeSpan
return IChainPal

Dispose() public method

public Dispose ( ) : void
return void

FromHandle() public static method

public static FromHandle ( IntPtr chainContext ) : IChainPal
chainContext System.IntPtr
return IChainPal

ReleaseSafeX509ChainHandle() public static method

public static ReleaseSafeX509ChainHandle ( IntPtr handle ) : bool
handle System.IntPtr
return bool

Verify() public method

Does not throw on api error. Returns default(bool?) and sets "exception" instead.
public Verify ( X509VerificationFlags flags, Exception &exception ) : bool?
flags X509VerificationFlags
exception System.Exception
return bool?