org.mozilla.jss.asn1
Class EXPLICIT
java.lang.Object
org.mozilla.jss.asn1.EXPLICIT
- ASN1Value
public class EXPLICIT
extends java.lang.Object
An explicit tag.
static class | EXPLICIT.Template - A template for decoding an object wrapped in an EXPLICIT tag.
|
void | encode(OutputStream ostream) - Write this value's DER encoding to an output stream using
its own base tag.
|
void | encode(Tag implicitTag, OutputStream ostream) - Write this value's DER encoding to an output stream using
an implicit tag.
|
ASN1Value | getContent() - Returns the ASN1Value that is wrapped by this EXPLICIT tag.
|
Tag | getTag() - Returns the Tag of this EXPLICIT tag.
|
static EXPLICIT.Template | getTemplate(Tag tag, ASN1Template content)
|
FORM
public static final Form FORM
EXPLICIT
public EXPLICIT(Tag tag,
ASN1Value content)
Creates an EXPLICIT tag wrapping some other ASN1Value. For example,
for the following ASN.1 snippet:
MyType [3] EXPLICIT INTEGER
assuming a sample value of 5 for the INTEGER, a MyType could be
created with:
EXPLICIT myValue = new EXPLICIT( new Tag(3), new INTEGER(5) );
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getContent
public ASN1Value getContent()
Returns the ASN1Value that is wrapped by this EXPLICIT tag.
getTag
public Tag getTag()
Returns the Tag of this EXPLICIT tag.
- getTag in interface ASN1Value