org.mozilla.jss.asn1

Class EXPLICIT

public class EXPLICIT extends Object implements ASN1Value

An explicit tag.
Nested Class Summary
static classEXPLICIT.Template
A template for decoding an object wrapped in an EXPLICIT tag.
Field Summary
static FormFORM
Constructor Summary
EXPLICIT(Tag tag, ASN1Value content)
Creates an EXPLICIT tag wrapping some other ASN1Value.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
ASN1ValuegetContent()
Returns the ASN1Value that is wrapped by this EXPLICIT tag.
TaggetTag()
Returns the Tag of this EXPLICIT tag.
static EXPLICIT.TemplategetTemplate(Tag tag, ASN1Template content)

Field Detail

FORM

public static final Form FORM

Constructor Detail

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) );
 

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

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.

getTemplate

public static EXPLICIT.Template getTemplate(Tag tag, ASN1Template content)