C# Class Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest

A class for verifying and creating Pkcs10 Certification requests.
Inheritance: Org.BouncyCastle.Asn1.Pkcs.CertificationRequest
显示文件 Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Methods

Method Description
GetPublicKey ( ) : AsymmetricKeyParameter

Get the public key.

Pkcs10CertificationRequest ( Asn1Sequence seq ) : System
Pkcs10CertificationRequest ( Stream input ) : System
Pkcs10CertificationRequest ( byte encoded ) : System
Pkcs10CertificationRequest ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey ) : System

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.

Verify ( ) : bool

Verify Pkcs10 Cert Request is valid.

Verify ( AsymmetricKeyParameter publicKey ) : bool

Private Methods

Method Description
CreatePssParams ( AlgorithmIdentifier hashAlgId, int saltSize ) : RsassaPssParameters
GetDigestAlgName ( DerObjectIdentifier digestAlgOID ) : string
GetSignatureName ( AlgorithmIdentifier sigAlgId ) : string
Pkcs10CertificationRequest ( ) : System
SetSignatureParameters ( ISigner signature, Asn1Encodable asn1Params ) : void

Method Details

GetPublicKey() public method

Get the public key.
public GetPublicKey ( ) : AsymmetricKeyParameter
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

Pkcs10CertificationRequest() public method

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

Pkcs10CertificationRequest() public method

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

Pkcs10CertificationRequest() public method

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

Pkcs10CertificationRequest() public method

Instantiate a Pkcs10CertificationRequest object with the necessary credentials.
public Pkcs10CertificationRequest ( string signatureAlgorithm, Org.BouncyCastle.Asn1.X509.X509Name subject, AsymmetricKeyParameter publicKey, Asn1Set attributes, AsymmetricKeyParameter signingKey ) : 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.
signingKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter Matching Private key for nominated (above) public key to be used to sign the request.
return System

Verify() public method

Verify Pkcs10 Cert Request is valid.
public Verify ( ) : bool
return bool

Verify() public method

public Verify ( AsymmetricKeyParameter publicKey ) : bool
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
return bool