org.mozilla.jss.pkix.cmmf

Class CertOrEncCert

Implemented Interfaces:
ASN1Value

public class CertOrEncCert
extends java.lang.Object
implements ASN1Value

Field Summary

static Tag
TAG

Constructor Summary

CertOrEncCert(byte[] encodedCert)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
Tag
getTag()

Field Details

TAG

public static final Tag TAG

Constructor Details

CertOrEncCert

public CertOrEncCert(byte[] encodedCert)
            throws IOException,
                   InvalidBERException
Throws:
InvalidBERException - If the certificate is not a valid BER-encoding.

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
Parameters:
implicitTag - This parameter is ignored, because a CHOICE cannot have an implicit tag.

getTag

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