FileDocCategorySizeDatePackage
CertificationRequest.javaAPI DocAzureus 3.0.3.41995Tue Jun 08 05:12:58 BST 2004org.bouncycastle.asn1.pkcs

CertificationRequest

public class CertificationRequest extends Object implements org.bouncycastle.asn1.DEREncodable
PKCS10 Certfication request object.
CertificationRequest ::= SEQUENCE {
certificationRequestInfo CertificationRequestInfo,
signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }},
signature BIT STRING
}

Fields Summary
protected CertificationRequestInfo
reqInfo
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier
sigAlgId
protected org.bouncycastle.asn1.DERBitString
sigBits
Constructors Summary
protected CertificationRequest()


     
    
    
public CertificationRequest(CertificationRequestInfo requestInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, org.bouncycastle.asn1.DERBitString signature)

        this.reqInfo = requestInfo;
        this.sigAlgId = algorithm;
        this.sigBits = signature;
    
public CertificationRequest(org.bouncycastle.asn1.ASN1Sequence seq)

        reqInfo = CertificationRequestInfo.getInstance(seq.getObjectAt(0));
        sigAlgId = AlgorithmIdentifier.getInstance(seq.getObjectAt(1));
        sigBits = (DERBitString)seq.getObjectAt(2);
    
Methods Summary
public CertificationRequestInfogetCertificationRequestInfo()

        return reqInfo;
    
public org.bouncycastle.asn1.DERObjectgetDERObject()

        // Construct the CertificateRequest
        ASN1EncodableVector  v = new ASN1EncodableVector();

        v.add(reqInfo);
        v.add(sigAlgId);
        v.add(sigBits);

        return new DERSequence(v);
    
public org.bouncycastle.asn1.DERBitStringgetSignature()

        return sigBits;
    
public org.bouncycastle.asn1.x509.AlgorithmIdentifiergetSignatureAlgorithm()

        return sigAlgId;