Package org.mozilla.jss.asn1
Class EXPLICIT
java.lang.Object
org.mozilla.jss.asn1.EXPLICIT
- All Implemented Interfaces:
ASN1Value
An explicit tag.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA template for decoding an object wrapped in an EXPLICIT tag. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.getTag()Returns the Tag of this EXPLICIT tag.static EXPLICIT.TemplategetTemplate(Tag tag, ASN1Template content)
-
Field Details
-
FORM
-
-
tag
-
-
Constructor Details
-
EXPLICIT
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));
- Parameters:
tag- Tag.content- Content.
-
-
Method Details
-
getContent
- Returns:
- the ASN1Value that is wrapped by this EXPLICIT tag.
-
getTag
Returns the Tag of this EXPLICIT tag. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-