FileDocCategorySizeDatePackage
CertificationRequest.javaAPI DocAndroid 1.5 API4346Wed May 06 22:41:06 BST 2009org.apache.harmony.security.pkcs10

CertificationRequest

public class CertificationRequest extends Object
The class implements the ASN.1 DER encoding and decoding of the PKCS#10 Certificate Signing Request (CSR). Its ASN notation is as follows: CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm SignatureAlgorithmIdentifier, signature Signature } SignatureAlgorithmIdentifier ::= AlgorithmIdentifier Signature ::= BIT STRING

Fields Summary
private CertificationRequestInfo
info
private org.apache.harmony.security.x509.AlgorithmIdentifier
algId
private byte[]
signature
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
Constructors Summary
public CertificationRequest(CertificationRequestInfo info, org.apache.harmony.security.x509.AlgorithmIdentifier algId, byte[] signature)

        this.info = info;
        this.algId = algId;
        this.signature = new byte[signature.length];
        System.arraycopy(signature, 0, this.signature, 0, signature.length);
    
private CertificationRequest(CertificationRequestInfo info, org.apache.harmony.security.x509.AlgorithmIdentifier algId, byte[] signature, byte[] encoding)

        this(info, algId, signature);
        this.encoding = encoding;
    
Methods Summary
public org.apache.harmony.security.x509.AlgorithmIdentifiergetAlgId()

return
Returns the algId.

        return algId;
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this CertificationRequest value.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = CertificationRequest.ASN1.encode(this);
        }
        return encoding;
    
public CertificationRequestInfogetInfo()

return
Returns the info.

        return info;
    
public byte[]getSignature()

return
Returns the signature.

        byte[] result = new byte[signature.length];
        System.arraycopy(signature, 0, result, 0, signature.length);
        return result;