C# Class 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.
Inheritance: Pkcs10CertificationRequest
显示文件 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
Pkcs10CertificationRequestDelaySigned ( ) : System

Method Details

GetDataToSign() public method

public GetDataToSign ( ) : byte[]
return byte[]

Pkcs10CertificationRequestDelaySigned() protected method

protected Pkcs10CertificationRequestDelaySigned ( ) : System
return System

Pkcs10CertificationRequestDelaySigned() public method

public Pkcs10CertificationRequestDelaySigned ( Asn1Sequence seq ) : System
seq Org.BouncyCastle.Asn1.Asn1Sequence
return System

Pkcs10CertificationRequestDelaySigned() public method

public Pkcs10CertificationRequestDelaySigned ( Stream input ) : System
input Stream
return System

Pkcs10CertificationRequestDelaySigned() public method

public Pkcs10CertificationRequestDelaySigned ( byte encoded ) : System
encoded byte
return System

Pkcs10CertificationRequestDelaySigned() public method

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.
return System

Pkcs10CertificationRequestDelaySigned() public method

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
return System

SignRequest() public method

public SignRequest ( DerBitString signedData ) : void
signedData Org.BouncyCastle.Asn1.DerBitString
return void

SignRequest() public method

public SignRequest ( byte signedData ) : void
signedData byte
return void