org.mozilla.jss.asn1
public class CHOICE extends Object implements ASN1Value
| Nested Class Summary | |
|---|---|
| static class | CHOICE.Template
A Template for decoding ASN.1 CHOICEs |
| Constructor Summary | |
|---|---|
| CHOICE(Tag implicitTag, ASN1Value val)
Create a CHOICE whose chosen element has an implicit tag. | |
| CHOICE(ASN1Value val)
Create a CHOICE whose chosen element has no implicit tag. | |
| Method Summary | |
|---|---|
| void | encode(OutputStream ostream)
Encodes this CHOICE. |
| void | encode(Tag implicitTag, OutputStream ostream)
Encodes this CHOICE. |
| Tag | getTag()
Returns the tag that the chosen element is encoded with, which is
either the underlying tag of the element or an implicit tag. |
| static CHOICE.Template | getTemplate() |
| ASN1Value | getValue()
Returns the chosen value. |
Parameters: implicitTag This value is ignored. The tag of a CHOICE is merely the tag of the chosen element of the CHOICE. A CHOICE cannot itself have an implicit tag.