org.mozilla.jss.pkix.cmc

Class CMCCertId

Implemented Interfaces:
ASN1Value

public class CMCCertId
extends java.lang.Object
implements ASN1Value

CMC CMCCertId.
 The definition of IssuerSerial comes from RFC 3281.
 CMCCertId ::= SEQUENCE {
      issuer      GeneralNames,
      serial      INTEGER 
      issuerUID   UniqueIdentifier OPTIONAL}
 

Nested Class Summary

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

Constructor Summary

CMCCertId(ANY issuer, INTEGER serial, BIT_STRING issuerUID)
Constructs a new CMCCertId from its components.
CMCCertId(SEQUENCE issuer, INTEGER serial, BIT_STRING issuerUID)
Constructs a new CMCCertId from its components.

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
SEQUENCE
getIssuer()
Returns the issuer field as an SEQUENCE of ANY.
BIT_STRING
getIssuerUID()
Returns the issuerUID field.
INTEGER
getSerial()
Returns the serial field.
Tag
getTag()
static CMCCertId.Template
getTemplate()

Constructor Details

CMCCertId

public CMCCertId(ANY issuer,
                 INTEGER serial,
                 BIT_STRING issuerUID)
Constructs a new CMCCertId from its components. The issuerUID component may be null.

CMCCertId

public CMCCertId(SEQUENCE issuer,
                 INTEGER serial,
                 BIT_STRING issuerUID)
Constructs a new CMCCertId from its components. The uniqueIdentifier 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 SEQUENCE getIssuer()
Returns the issuer field as an SEQUENCE of ANY. The actual type of the field is GeneralNames.

getIssuerUID

public BIT_STRING getIssuerUID()
Returns the issuerUID field.

getSerial

public INTEGER getSerial()
Returns the serial field.

getTag

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

getTemplate

public static CMCCertId.Template getTemplate()