org.mozilla.jss.pkix.cert

Class Extension

Implemented Interfaces:
ASN1Value
Known Direct Subclasses:
SubjectKeyIdentifier

public class Extension
extends java.lang.Object
implements ASN1Value

Nested Class Summary

static class
Extension.Template

Field Summary

static Tag
TAG

Constructor Summary

Extension(OBJECT_IDENTIFIER extnId, boolean critical, OCTET_STRING extnValue)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicit, OutputStream ostream)
boolean
getCritical()
OBJECT_IDENTIFIER
getExtnId()
Returns the extension identifier.
OCTET_STRING
getExtnValue()
Tag
getTag()
static Extension.Template
getTemplate()

Field Details

TAG

public static final Tag TAG

Constructor Details

Extension

public Extension(OBJECT_IDENTIFIER extnId,
                 boolean critical,
                 OCTET_STRING extnValue)

Method Details

encode

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

encode

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

getCritical

public boolean getCritical()

getExtnId

public OBJECT_IDENTIFIER getExtnId()
Returns the extension identifier.

getExtnValue

public OCTET_STRING getExtnValue()

getTag

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

getTemplate

public static Extension.Template getTemplate()