public class Asn1ChoiceExt extends Asn1OpenType
Asn1OpenType.SaxHandler| Modifier and Type | Field and Description |
|---|---|
short |
choiceIndex
The choice index value is used with the packed encoding rules (PER)
when this object is used to encode/decode a choice extension.
|
Asn1Tag |
tag
tag is used with OER.
|
BER, dataEncoding, EDATAMSG, JSON, mEncodeBuffer, mLength, OER, PER, UNKNOWN, XERTAG, valueBIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mNonParameterizedTypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString| Constructor and Description |
|---|
Asn1ChoiceExt()
This constructor creates an empty type that can be used in
a decode method call to receive an encoded value.
|
Asn1ChoiceExt(byte[] data)
This constructor initializes an open type from the given
byte array.
|
Asn1ChoiceExt(byte[] data,
int encoding)
This constructor initializes an open type from the given
byte array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an extension field using the Basic
Encoding Rules (BER).
|
void |
decode(Asn1PerDecodeBuffer buffer)
This method decodes an open type extension in a CHOICE construct
using the packed encoding rules (PER).
|
int |
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method encodes an ASN.1 open type extension value using the
Basic Encoding Rules (BER).
|
void |
encode(Asn1BerOutputStream out,
boolean explicit)
This method encodes an ASN.1 open type extension value using the
Basic Encoding Rules (BER).
|
void |
encode(Asn1OerEncodeBuffer buffer)
Encode this unknown choice extension using the Octet Encoding Rules (OER).
|
void |
encode(Asn1PerEncodeBuffer buffer)
This method encodes an ASN.1 open type extension value using the
Packed Encoding Rules (PER).
|
void |
encode(Asn1PerOutputStream out)
This method encodes an ASN.1 open type value using the Packed
Encoding Rules (PER).
|
decode, decode, decode72, decodeExtension, encode, encode, encode, encode, encode, encode72, encodeAsExtension, encodeAsExtension, encodeAsExtension, getAsn1TypeName, getCharData, getDataEncoding, getSaxHandler, getSaxHandler, setBinaryData, setCharData, setCharData, toStringcompareTo, decode, decode, decode, decode, decodeAsBase64, decodeAsHex, decodeContent, decodeRemainingBits, decodeXER, decodeXML, encode, encode, encode, encode, encode, encodeAsBase64, encodeAsHex, encodeAttribute, encodeBase64Binary, encodeContent, equals, equals, equals, getLength, getMderLength, hashCode, skip, skip, toInputStream_setKey, _setLicLocation, clone, decode, decode, decode, decode, decode, decode, decode, decode, decode, encode, encode, encode, encodeAsOpenType, equals, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, print, print, setNonParameterizedTypeName, setOpenTypepublic short choiceIndex
public Asn1Tag tag
public Asn1ChoiceExt()
public Asn1ChoiceExt(byte[] data)
data - Byte array containing a previously encoded value.public Asn1ChoiceExt(byte[] data,
int encoding)
data - Byte array containing a previously encoded value.encoding - The encoding that describes the meaning of data.
Any of the encodings other than JSON.public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
decode in interface Asn1TypeIFdecode in class Asn1OpenTypebuffer - Decode message buffer objectexplicit - Flag indicating element is explicitly taggedimplicitLength - Length of contents if implicitAsn1Exceptionjava.io.IOExceptionpublic int encode(Asn1BerEncodeBuffer buffer, boolean explicit) throws Asn1Exception
encode in interface Asn1TypeIFencode in class Asn1OpenTypebuffer - Encode message buffer objectexplicit - Flag indicating element is explicitly taggedAsn1Exceptionpublic void decode(Asn1PerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
value public member list variable. The public
member variable choiceIndex will be populated
with the decoded choice index value.decode in interface Asn1TypeIFdecode in class Asn1OpenTypebuffer - Decode message buffer objectAsn1Exceptionjava.io.IOExceptionpublic void encode(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
encode in interface Asn1TypeIFencode in class Asn1OpenTypebuffer - Encode message buffer objectAsn1Exceptionjava.io.IOExceptionpublic void encode(Asn1BerOutputStream out, boolean explicit) throws Asn1Exception, java.io.IOException
encode in interface Asn1TypeIFencode in class Asn1OpenTypeout - BER Output Stream objectexplicit - Flag indicating element is explicitly taggedAsn1Exception - Thrown, if operation is failed.java.io.IOException - Any exception thrown by the underlying OutputStream.public void encode(Asn1PerOutputStream out) throws Asn1Exception, java.io.IOException
encode in interface Asn1TypeIFencode in class Asn1OpenTypeout - PER Output Stream objectAsn1Exception - Thrown, if operation is failed.java.io.IOException - Any exception thrown by the Asn1PerOutputStream.public void encode(Asn1OerEncodeBuffer buffer) throws java.io.IOException
encode in class Asn1OpenTypebuffer - Encode message buffer objectjava.io.IOException - for I/O exception