public class Asn1OpenExt extends Asn1Type
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList |
value
The value is a list of Asn1OpenType objects.
|
BIT_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 |
---|
Asn1OpenExt() |
Modifier and Type | Method and Description |
---|---|
void |
decode(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 open type extension value using the
Basic Encoding Rules (BER).
|
void |
decode(Asn1PerDecodeBuffer buffer)
This method decodes an open type extension in a SEQUENCE or
SET construct using the packed encoding rules (PER).
|
void |
decodeComponent(Asn1BerDecodeBuffer buffer)
This method decodes a single component of a BER open type
extension by decoding an open type value and appending it to
the list of open type objects.
|
void |
decodeEventComponent(Asn1BerDecodeBuffer buffer)
This method decodes a single component of a BER open type
extension by decoding an open type value and appending it to
the list of open type objects, this function also triggers
event handler code, with element name "..."
|
void |
decodeExtension(Asn1JsonDecodeBuffer buffer,
java.lang.String name)
Decode a single occurrence of an extension from JSON and add an
Asn1OpenType for it to the list of extensions.
|
Asn1OpenType |
decodeOpenType(Asn1OerDecodeBuffer buffer,
boolean present,
int index)
This method decodes a single open type extension item in a
SEQUENCE or SET construct using the octet encoding rules (OER).
|
Asn1OpenType |
decodeOpenType(Asn1PerDecodeBuffer buffer,
boolean present,
int index)
This method decodes a single open type extension item in a
SEQUENCE or SET 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) and writes it into the stream.
|
void |
encode(Asn1JsonOutputStream outstream,
boolean asArray)
Encode the open extension elements to JSON
|
void |
encode(Asn1OerEncodeBuffer buffer)
This method encodes the ASN.1 open type extensions using 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 extension value using the
Packed Encoding Rules (PER).
|
void |
encode(Asn1XerEncoder buffer)
This method encodes an ASN.1 open type extension value using the XML
Encoding Rules (XER).
|
void |
encode(Asn1XmlEncoder buffer)
This method encodes an ASN.1 integer value using the XML
Encoding as specified in the XML schema standard (asn2xsd).
|
void |
encodeExtBits(Asn1OerEncodeBuffer buffer)
This method encodes an ASN.1 open type extension value bits
using the Packed Encoding Rules (PER).
|
void |
encodeExtBits(Asn1PerEncodeBuffer buffer)
This method encodes an ASN.1 open type extension value bits
using the Packed Encoding Rules (PER).
|
boolean |
equals(java.lang.Object o)
Compares extension lists.
|
java.lang.String |
getAsn1TypeName()
This method returns "Open Type Extension" as the ASN.1 type name.
|
int |
hashCode()
Returns the hashcode for an extension list.
|
boolean |
hasPresentExtensions()
Return true if this contains present extensions.
|
void |
setOpenType(Asn1OpenType object,
int index)
This method will add the given open type object to the
open extension element list at the given index.
|
java.lang.String |
toString()
This method will return a string representation of the open
extension value.
|
_setKey, _setLicLocation, clone, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, decodeXML, encode, encode, encode, encode, encode, encode, encode, encodeAsOpenType, equals, getLength, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, print, print, setNonParameterizedTypeName, setOpenType
public transient java.util.ArrayList value
public java.lang.String getAsn1TypeName()
getAsn1TypeName
in class Asn1Type
public boolean hasPresentExtensions()
public void encodeExtBits(Asn1OerEncodeBuffer buffer) throws java.io.IOException
buffer
- Encode message buffer objectjava.io.IOException
public void encode(Asn1OerEncodeBuffer buffer) throws java.io.IOException
public void decodeEventComponent(Asn1BerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer objectAsn1Exception
java.io.IOException
public void decodeComponent(Asn1BerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer objectAsn1Exception
java.io.IOException
public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
decode
in interface Asn1TypeIF
decode
in class Asn1Type
buffer
- Decode message buffer objectexplicit
- Flag indicating element is explicitly taggedimplicitLength
- Length if implicit elementAsn1Exception
java.io.IOException
public int encode(Asn1BerEncodeBuffer buffer, boolean explicit) throws Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer objectexplicit
- Flag indicating element is explicitly taggedAsn1Exception
public void decode(Asn1PerDecodeBuffer buffer) throws Asn1Exception, java.io.IOException
value
public
member list variable. If optional items are absent, null
placeholders will be inserted in the list.decode
in interface Asn1TypeIF
decode
in class Asn1Type
buffer
- Decode message buffer objectAsn1Exception
java.io.IOException
public Asn1OpenType decodeOpenType(Asn1PerDecodeBuffer buffer, boolean present, int index) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer objectpresent
- Flag indicating whether element is presentindex
- Index of element in the object arrayAsn1Exception
java.io.IOException
public void encode(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer objectAsn1Exception
java.io.IOException
public void encodeExtBits(Asn1PerEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
buffer
- Encode message buffer objectAsn1Exception
java.io.IOException
public Asn1OpenType decodeOpenType(Asn1OerDecodeBuffer buffer, boolean present, int index) throws Asn1Exception, java.io.IOException
buffer
- Decode message buffer objectpresent
- Flag indicating whether element is presentindex
- Index of element in the object array.
If index >= value.size, the item is appended to the
list (all such values of index thus have the same
behavior).Asn1Exception
java.io.IOException
public void setOpenType(Asn1OpenType object, int index)
object
- Open type objectindex
- Index in open type list where element is to be placedpublic java.lang.String toString()
toString
in class java.lang.Object
public void encode(Asn1BerOutputStream out, boolean explicit) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
out
- BER Output Stream objectexplicit
- Flag indicating element is explicitly taggedjava.io.IOException
- Any exception thrown by the Asn1BerOutputStream.Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1PerOutputStream out) throws Asn1Exception, java.io.IOException
encode
in interface Asn1TypeIF
encode
in class Asn1Type
out
- PER Output Stream objectjava.io.IOException
- Any exception thrown by the Asn1PerOutputStream.Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1XerEncoder buffer) throws java.io.IOException, Asn1Exception
encode
in interface Asn1TypeIF
encode
in class Asn1Type
buffer
- Encode message buffer objectjava.io.IOException
- Any exception thrown by the underlying stream.Asn1Exception
- Thrown, if operation is failed.public void encode(Asn1XmlEncoder buffer) throws java.io.IOException, Asn1Exception
buffer
- Encode message buffer objectjava.io.IOException
Asn1Exception
public void decodeExtension(Asn1JsonDecodeBuffer buffer, java.lang.String name) throws java.io.IOException
buffer
- Decode message buffer objectname
- The name of the extension element (previously decoded).
This becomes a part of the character data held in the Asn1OpenType
object, so that the character data represents a full JSONNamedValue.
Pass null for extensions in [ARRAY] SEQUENCE.java.io.IOException
public void encode(Asn1JsonOutputStream outstream, boolean asArray) throws java.io.IOException
asArray
- true if the enclosing type is [ARRAY] SEQUENCE; false
otherwise.java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare.