ASN1ValueSubjectKeyIdentifierpublic class Extension extends java.lang.Object implements ASN1Value
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Extension.Template |
| Constructor | Description |
|---|---|
Extension(OBJECT_IDENTIFIER extnId,
boolean critical,
OCTET_STRING extnValue) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
encode(java.io.OutputStream ostream) |
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicit,
java.io.OutputStream ostream) |
Write this value's DER encoding to an output stream using
an implicit tag.
|
boolean |
getCritical() |
|
OBJECT_IDENTIFIER |
getExtnId() |
Returns the extension identifier.
|
OCTET_STRING |
getExtnValue() |
|
Tag |
getTag() |
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static Extension.Template |
getTemplate() |
public static final Tag TAG
public Extension(OBJECT_IDENTIFIER extnId, boolean critical, OCTET_STRING extnValue)
public Tag getTag()
ASN1Valuepublic OBJECT_IDENTIFIER getExtnId()
public boolean getCritical()
public OCTET_STRING getExtnValue()
public void encode(java.io.OutputStream ostream)
throws java.io.IOException
ASN1Valuepublic void encode(Tag implicit, java.io.OutputStream ostream) throws java.io.IOException
ASN1Valuepublic static Extension.Template getTemplate()