org.mozilla.jss.pkix.cmmf

Class CertResponse

Implemented Interfaces:
ASN1Value

public class CertResponse
extends java.lang.Object
implements ASN1Value

Field Summary

static Tag
TAG

Constructor Summary

CertResponse(INTEGER certReqId, PKIStatusInfo status)
CertResponse(INTEGER certReqId, PKIStatusInfo status, CertifiedKeyPair certifiedKeyPair)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
INTEGER
getCertReqId()
CertifiedKeyPair
getCertifiedKeyPair()
Returns the optional certified key pair.
PKIStatusInfo
getPKIStatusInfo()
Tag
getTag()
boolean
hasCertifiedKeyPair()
Returns true if the certifiedKeyPair field is present.

Field Details

TAG

public static final Tag TAG

Constructor Details

CertResponse

public CertResponse(INTEGER certReqId,
                    PKIStatusInfo status)

CertResponse

public CertResponse(INTEGER certReqId,
                    PKIStatusInfo status,
                    CertifiedKeyPair certifiedKeyPair)

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

getCertReqId

public INTEGER getCertReqId()

getCertifiedKeyPair

public CertifiedKeyPair getCertifiedKeyPair()
Returns the optional certified key pair. Should only be called if the certifiedKeyPair field is present.

getPKIStatusInfo

public PKIStatusInfo getPKIStatusInfo()

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value

hasCertifiedKeyPair

public boolean hasCertifiedKeyPair()
Returns true if the certifiedKeyPair field is present.