org.mozilla.jss.asn1
Class EXPLICIT
java.lang.Object
|
+--org.mozilla.jss.asn1.EXPLICIT
- public class EXPLICIT
- extends java.lang.Object
- implements ASN1Value
An explicit tag.
Inner Class Summary |
static class |
EXPLICIT.Template
A template for decoding an object wrapped in an EXPLICIT tag. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
FORM
public static final Form FORM
content
private ASN1Value content
tag
private Tag tag
EXPLICIT
private EXPLICIT()
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) );
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.
- Specified by:
- getTag in interface ASN1Value
encode
public void encode(java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
- encode in interface ASN1Value
getTemplate
public static EXPLICIT.Template getTemplate(Tag tag,
ASN1Template content)