КриптоПро .NET
Search Results for

    Показать/Скрыть содержание

    Class RSACertificateExtensions

    Provides extension methods for retrieving CpRSA implementations for the public and private keys of a CpX509Certificate2.

    Inheritance
    object
    RSACertificateExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography.X509Certificates
    Assembly: CryptoPro.Security.Cryptography.dll
    Syntax
    public static class RSACertificateExtensions

    Methods

    CopyWithPrivateKey(CpX509Certificate2, CpRSA)

    Declaration
    public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, CpRSA privateKey)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    CpRSA privateKey
    Returns
    Type Description
    CpX509Certificate2
    Exceptions
    Type Condition
    ArgumentNullException
    InvalidOperationException
    ArgumentException

    GetRSAPrivateKey(CpX509Certificate2)

    Gets the RSA private key from the certificate or null if the certificate does not have an RSA private key.

    Declaration
    public static CpRSA? GetRSAPrivateKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    CpRSA

    GetRSAPublicKey(CpX509Certificate2)

    Gets the CpRSA public key from the certificate or null if the certificate does not have an RSA public key.

    Declaration
    public static CpRSA GetRSAPublicKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    CpRSA
    В этом разделе
    Наверх Generated by DocFX