org.mozilla.jss.pkix.crmf

Class CertReqMsg

public class CertReqMsg extends Object implements ASN1Value

This class models a CRMF CertReqMsg structure.
Nested Class Summary
static classCertReqMsg.Template
A class for decoding CertReqMsg structures from a BER encoding.
Field Summary
static TagTAG
Constructor Summary
CertReqMsg(CertRequest certReq, ProofOfPossession pop, SEQUENCE regInfo)
Constructs a CertReqmsg from a CertRequest and, optionally, a pop>/i> and a regInfo.
Method Summary
voidencode(OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using DER encoding.
voidencode(Tag implicit, OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using DER encoding, with the given implicit tag.
CertRequestgetCertReq()
Retrieves the CertRequest contained in this structure.
ProofOfPossessiongetPop()
Returns the pop field.
SEQUENCEgetRegInfo()
Returns the regInfo field.
TaggetTag()
static CertReqMsg.TemplategetTemplate()
booleanhasPop()
Returns true if this CertReqMsg has a pop field.
booleanhasRegInfo()
Returns true if this CertReqMsg has a regInfo field.
static voidmain(String[] args)
voidverify()
voidverify(CryptoToken token)

Field Detail

TAG

public static final Tag TAG

Constructor Detail

CertReqMsg

public CertReqMsg(CertRequest certReq, ProofOfPossession pop, SEQUENCE regInfo)
Constructs a CertReqmsg from a CertRequest and, optionally, a pop>/i> and a regInfo.

Parameters: pop May be NULL. regInfo May be NULL.

Method Detail

encode

public void encode(OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using DER encoding.

encode

public void encode(Tag implicit, OutputStream ostream)
Encodes this CertReqMsg to the given OutputStream using DER encoding, with the given implicit tag.

getCertReq

public CertRequest getCertReq()
Retrieves the CertRequest contained in this structure.

getPop

public ProofOfPossession getPop()
Returns the pop field. Should only be called if the field is present.

getRegInfo

public SEQUENCE getRegInfo()
Returns the regInfo field. Should only be called if the field is present.

getTag

public Tag getTag()

getTemplate

public static CertReqMsg.Template getTemplate()

hasPop

public boolean hasPop()
Returns true if this CertReqMsg has a pop field.

hasRegInfo

public boolean hasRegInfo()
Returns true if this CertReqMsg has a regInfo field.

main

public static void main(String[] args)

verify

public void verify()

verify

public void verify(CryptoToken token)