Modifier and Type | Class and Description |
---|---|
static class |
EXPLICIT.Template
A template for decoding an object wrapped in an EXPLICIT tag.
|
Constructor and Description |
---|
EXPLICIT(Tag tag,
ASN1Value content)
Creates an EXPLICIT tag wrapping some other ASN1Value.
|
Modifier and Type | Method and 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 implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
ASN1Value |
getContent() |
Tag |
getTag()
Returns the Tag of this EXPLICIT tag.
|
static EXPLICIT.Template |
getTemplate(Tag tag,
ASN1Template content) |
public static final Form FORM
public EXPLICIT(Tag tag, ASN1Value content)
MyType [3] EXPLICIT INTEGERassuming a sample value of 5 for the INTEGER, a MyType could be created with:
EXPLICIT myValue = new EXPLICIT( new Tag(3), new INTEGER(5) );
tag
- Tag.content
- Content.public ASN1Value getContent()
public Tag getTag()
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static EXPLICIT.Template getTemplate(Tag tag, ASN1Template content)