C# Class Internal.Cryptography.Pal.StorePal

Inheritance: IDisposable, IStorePal, IExportPal, ILoaderPal
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
FromBlobOrFile StorePal
MapKeyStorageFlags PfxCertStoreFlags
MapX509StoreFlags CertStoreFlags
SaveToMemoryStore byte[]
StorePal System

Méthodes publiques

Méthode Description
Add ( ICertificatePal certificate ) : void
CloneTo ( X509Certificate2Collection collection ) : void
CopyTo ( X509Certificate2Collection collection ) : void
Dispose ( ) : void
Export ( X509ContentType contentType, SafePasswordHandle password ) : byte[]
FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ILoaderPal
FromCertificate ( ICertificatePal cert ) : IExportPal
FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ILoaderPal
FromHandle ( IntPtr storeHandle ) : IStorePal
FromSystemStore ( string storeName, StoreLocation storeLocation, OpenFlags openFlags ) : IStorePal
LinkFromCertificateCollection ( X509Certificate2Collection certificates ) : IExportPal

Note: this factory method creates the store using links to the original certificates rather than copies. This means that any changes to certificate properties in the store changes the original.

MoveTo ( X509Certificate2Collection collection ) : void
Remove ( ICertificatePal certificate ) : void

Private Methods

Méthode Description
FromBlobOrFile ( byte rawData, string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : StorePal
MapKeyStorageFlags ( X509KeyStorageFlags keyStorageFlags ) : PfxCertStoreFlags
MapX509StoreFlags ( StoreLocation storeLocation, OpenFlags flags ) : CertStoreFlags
SaveToMemoryStore ( CertStoreSaveAs dwSaveAs ) : byte[]
StorePal ( SafeCertStoreHandle certStore ) : System

Method Details

Add() public méthode

public Add ( ICertificatePal certificate ) : void
certificate ICertificatePal
Résultat void

CloneTo() public méthode

public CloneTo ( X509Certificate2Collection collection ) : void
collection System.Security.Cryptography.X509Certificates.X509Certificate2Collection
Résultat void

CopyTo() public méthode

public CopyTo ( X509Certificate2Collection collection ) : void
collection System.Security.Cryptography.X509Certificates.X509Certificate2Collection
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Export() public méthode

public Export ( X509ContentType contentType, SafePasswordHandle password ) : byte[]
contentType X509ContentType
password Microsoft.Win32.SafeHandles.SafePasswordHandle
Résultat byte[]

FromBlob() public static méthode

public static FromBlob ( byte rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ILoaderPal
rawData byte
password Microsoft.Win32.SafeHandles.SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Résultat ILoaderPal

FromCertificate() public static méthode

public static FromCertificate ( ICertificatePal cert ) : IExportPal
cert ICertificatePal
Résultat IExportPal

FromFile() public static méthode

public static FromFile ( string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags ) : ILoaderPal
fileName string
password Microsoft.Win32.SafeHandles.SafePasswordHandle
keyStorageFlags X509KeyStorageFlags
Résultat ILoaderPal

FromHandle() public static méthode

public static FromHandle ( IntPtr storeHandle ) : IStorePal
storeHandle System.IntPtr
Résultat IStorePal

FromSystemStore() public static méthode

public static FromSystemStore ( string storeName, StoreLocation storeLocation, OpenFlags openFlags ) : IStorePal
storeName string
storeLocation StoreLocation
openFlags OpenFlags
Résultat IStorePal

LinkFromCertificateCollection() public static méthode

Note: this factory method creates the store using links to the original certificates rather than copies. This means that any changes to certificate properties in the store changes the original.
public static LinkFromCertificateCollection ( X509Certificate2Collection certificates ) : IExportPal
certificates System.Security.Cryptography.X509Certificates.X509Certificate2Collection
Résultat IExportPal

MoveTo() public méthode

public MoveTo ( X509Certificate2Collection collection ) : void
collection System.Security.Cryptography.X509Certificates.X509Certificate2Collection
Résultat void

Remove() public méthode

public Remove ( ICertificatePal certificate ) : void
certificate ICertificatePal
Résultat void