org.mozilla.jss.pkix.crmf

Class CertId

Implemented Interfaces:
ASN1Value

public class CertId
extends java.lang.Object
implements ASN1Value

CRMF CertId.
 CertId ::= SEQUENCE {
      issuer          GeneralName,
      serialNumber    INTEGER }
 

Nested Class Summary

static class
CertId.Template
A Template for decoding a CertId.

Constructor Summary

CertId(ANY issuer, INTEGER serialNumber)
Constructs a new CertId from its components.

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
ANY
getIssuer()
Returns the issuer field as an ANY.
INTEGER
getSerialNumber()
Returns the serialNumber field.
Tag
getTag()
static CertId.Template
getTemplate()

Constructor Details

CertId

public CertId(ANY issuer,
              INTEGER serialNumber)
Constructs a new CertId from its components. Neither component may be null.

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

getIssuer

public ANY getIssuer()
Returns the issuer field as an ANY. The actual type of the field is GeneralName.

getSerialNumber

public INTEGER getSerialNumber()
Returns the serialNumber field.

getTag

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

getTemplate

public static CertId.Template getTemplate()