C# Класс Org.BouncyCastle.Pkcs.Pkcs10CertificationRequestDelaySigned

A class for creating and verifying Pkcs10 Certification requests (this is an extension on Pkcs10CertificationRequest). The requests are made using delay signing. This is useful for situations where the private key is in another environment and not directly accessible (e.g. HSM) So the first step creates the request, then the signing is done outside this object and the signature is then used to complete the request.
Наследование: Pkcs10CertificationRequest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetDataToSign ( ) : byte[]
Pkcs10CertificationRequestDelaySigned ( Asn1Sequence seq ) : System
Pkcs10CertificationRequestDelaySigned ( Stream input ) : System
Pkcs10CertificationRequestDelaySigned ( byte encoded ) : System
Pkcs10CertificationRequestDelaySigned ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes ) : System

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.

After the object is constructed use the GetDataToSign and finally the SignRequest methods to finalize the request.

Pkcs10CertificationRequestDelaySigned ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey ) : System
SignRequest ( DerBitString signedData ) : void
SignRequest ( byte signedData ) : void

Защищенные методы

Метод Описание
Pkcs10CertificationRequestDelaySigned ( ) : System

Описание методов

GetDataToSign() публичный Метод

public GetDataToSign ( ) : byte[]
Результат byte[]

Pkcs10CertificationRequestDelaySigned() защищенный Метод

protected Pkcs10CertificationRequestDelaySigned ( ) : System
Результат System

Pkcs10CertificationRequestDelaySigned() публичный Метод

public Pkcs10CertificationRequestDelaySigned ( Asn1Sequence seq ) : System
seq Org.BouncyCastle.Asn1.Asn1Sequence
Результат System

Pkcs10CertificationRequestDelaySigned() публичный Метод

public Pkcs10CertificationRequestDelaySigned ( Stream input ) : System
input Stream
Результат System

Pkcs10CertificationRequestDelaySigned() публичный Метод

public Pkcs10CertificationRequestDelaySigned ( byte encoded ) : System
encoded byte
Результат System

Pkcs10CertificationRequestDelaySigned() публичный Метод

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.
After the object is constructed use the GetDataToSign and finally the SignRequest methods to finalize the request.
public Pkcs10CertificationRequestDelaySigned ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes ) : System
signatureAlgorithm string Name of Sig Alg.
subject Org.BouncyCastle.Asn1.X509.X509Name X509Name of subject eg OU="My unit." O="My Organisatioin" C="au"
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter Public Key to be included in cert reqest.
attributes Org.BouncyCastle.Asn1.Asn1Set ASN1Set of Attributes.
Результат System

Pkcs10CertificationRequestDelaySigned() публичный Метод

public Pkcs10CertificationRequestDelaySigned ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey ) : System
signatureAlgorithm string
subject Org.BouncyCastle.Asn1.X509.X509Name
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
attributes Org.BouncyCastle.Asn1.Asn1Set
signingKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
Результат System

SignRequest() публичный Метод

public SignRequest ( DerBitString signedData ) : void
signedData Org.BouncyCastle.Asn1.DerBitString
Результат void

SignRequest() публичный Метод

public SignRequest ( byte signedData ) : void
signedData byte
Результат void