CertificationRequestpublic 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.AlgorithmIdentifier | getAlgId()
return algId;
| public byte[] | getEncoded()Returns ASN.1 encoded form of this CertificationRequest value.
if (encoding == null) {
encoding = CertificationRequest.ASN1.encode(this);
}
return encoding;
| public CertificationRequestInfo | getInfo()
return info;
| public byte[] | getSignature()
byte[] result = new byte[signature.length];
System.arraycopy(signature, 0, result, 0, signature.length);
return result;
|
|