org.mozilla.jss.pkix.crmf

Class CertRequest

public class CertRequest extends Object implements ASN1Value

A PKIX CertRequest. Currently can only be decoded from its BER encoding. There are no methods for constructing one.
Nested Class Summary
static classCertRequest.Template
A Template class for constructing CertRequests from their BER encoding.
Field Summary
static TagTAG
Constructor Summary
CertRequest(INTEGER certReqId, CertTemplate certTemplate, SEQUENCE controls)
Method Summary
AVAcontrolAt(int i)
Returns the ith Control.
voidencode(OutputStream ostream)
This method is not yet supported.
voidencode(Tag implicit, OutputStream ostream)
This method is not yet supported.
INTEGERgetCertReqId()
Returns the certReqId (certificate request ID) field.
CertTemplategetCertTemplate()
Returns the CertTemplate field.
TaggetTag()
intnumControls()
Returns the number of optional Controls in the cert request.

Field Detail

TAG

public static final Tag TAG

Constructor Detail

CertRequest

public CertRequest(INTEGER certReqId, CertTemplate certTemplate, SEQUENCE controls)

Parameters: certReqId May NOT be null. certTemplate May NOT be null. controls May be null.

Method Detail

controlAt

public AVA controlAt(int i)
Returns the ith Control. i must be in the range [0..numControls-1].

encode

public void encode(OutputStream ostream)
This method is not yet supported.

encode

public void encode(Tag implicit, OutputStream ostream)
This method is not yet supported.

getCertReqId

public INTEGER getCertReqId()
Returns the certReqId (certificate request ID) field.

getCertTemplate

public CertTemplate getCertTemplate()
Returns the CertTemplate field.

getTag

public Tag getTag()

numControls

public int numControls()
Returns the number of optional Controls in the cert request. The number may be zero.