public abstract class Asn1TaggingCollection extends AbstractAsn1Type<Asn1CollectionType> implements Asn1Dumpable
Asn1Type.EncodingTypebodyLength, outerEncodeable| Constructor and Description |
|---|
Asn1TaggingCollection(int taggingTagNo,
Asn1FieldInfo[] tags,
boolean isAppSpecific,
boolean isImplicit) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Asn1CollectionType |
createTaggedCollection(Asn1FieldInfo[] tags) |
void |
decode(ByteBuffer content)
Decode the content bytes into this type.
|
protected void |
decodeBody(Asn1ParseResult parseResult) |
void |
dumpWith(Asn1Dumper dumper,
int indents) |
protected void |
encodeBody(ByteBuffer buffer) |
protected int |
encodingBodyLength() |
protected <T extends Asn1Type> |
getFieldAs(EnumType index,
Class<T> t) |
protected Integer |
getFieldAsInteger(EnumType index) |
protected byte[] |
getFieldAsOctetBytes(EnumType index) |
protected byte[] |
getFieldAsOctets(EnumType index) |
protected String |
getFieldAsString(EnumType index) |
boolean |
isBER()
Tells if it's is BER
|
boolean |
isCER()
Tells if it's is CER
|
boolean |
isDefinitiveLength()
Tells if it's definitive length or not.
|
boolean |
isDER()
Tells if it's is DER
|
boolean |
isImplicit()
Tells if it's is IMPLICIT or not.
|
boolean |
isPrimitive()
Tells if it is PRIMITIVE or not.
|
protected void |
setFieldAs(EnumType index,
Asn1Type value) |
protected void |
setFieldAsInt(EnumType index,
int value) |
protected void |
setFieldAsOctetBytes(EnumType index,
byte[] value) |
protected void |
setFieldAsOctets(EnumType index,
byte[] bytes) |
Tag |
tag() |
int |
tagNo() |
void |
useBER()
Set encoding type as BER.
|
void |
useCER()
Set encoding type as CER.
|
void |
useDefinitiveLength(boolean isDefinitiveLength)
Use definitive length or not.
|
void |
useDER()
Set encoding type as DER.
|
void |
useImplicit(boolean isImplicit)
Use implicit or not.
|
void |
usePrimitive(boolean isPrimitive)
Use primitive or constructed.
|
getValue, setValue, toStringdecode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLengthisAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tagFlagspublic Asn1TaggingCollection(int taggingTagNo,
Asn1FieldInfo[] tags,
boolean isAppSpecific,
boolean isImplicit)
protected abstract Asn1CollectionType createTaggedCollection(Asn1FieldInfo[] tags)
public Tag tag()
tag in interface Asn1Typetag in class Asn1Objectpublic int tagNo()
tagNo in class Asn1Objectpublic void usePrimitive(boolean isPrimitive)
Asn1TypeusePrimitive in interface Asn1TypeusePrimitive in class Asn1Encodeablepublic boolean isPrimitive()
Asn1TypeisPrimitive in interface Asn1TypeisPrimitive in class Asn1Encodeablepublic void useDefinitiveLength(boolean isDefinitiveLength)
Asn1TypeuseDefinitiveLength in interface Asn1TypeuseDefinitiveLength in class Asn1Encodeablepublic boolean isDefinitiveLength()
Asn1TypeisDefinitiveLength in interface Asn1TypeisDefinitiveLength in class Asn1Encodeablepublic void useImplicit(boolean isImplicit)
Asn1TypeuseImplicit in interface Asn1TypeuseImplicit in class Asn1Encodeablepublic boolean isImplicit()
Asn1TypeisImplicit in interface Asn1TypeisImplicit in class Asn1Encodeablepublic void useDER()
Asn1TypeuseDER in interface Asn1TypeuseDER in class Asn1Encodeablepublic boolean isDER()
Asn1TypeisDER in interface Asn1TypeisDER in class Asn1Encodeablepublic void useBER()
Asn1TypeuseBER in interface Asn1TypeuseBER in class Asn1Encodeablepublic boolean isBER()
Asn1TypeisBER in interface Asn1TypeisBER in class Asn1Encodeablepublic void useCER()
Asn1TypeuseCER in interface Asn1TypeuseCER in class Asn1Encodeablepublic boolean isCER()
Asn1TypeisCER in interface Asn1TypeisCER in class Asn1Encodeableprotected int encodingBodyLength()
throws IOException
encodingBodyLength in class Asn1EncodeableIOExceptionprotected void encodeBody(ByteBuffer buffer) throws IOException
encodeBody in class Asn1EncodeableIOExceptionpublic void decode(ByteBuffer content) throws IOException
Asn1Typedecode in interface Asn1Typedecode in class Asn1Encodeablecontent - The content bytesIOException - eprotected void decodeBody(Asn1ParseResult parseResult) throws IOException
decodeBody in class Asn1EncodeableIOExceptionprotected byte[] getFieldAsOctets(EnumType index)
protected void setFieldAsOctets(EnumType index, byte[] bytes)
protected void setFieldAsInt(EnumType index, int value)
protected byte[] getFieldAsOctetBytes(EnumType index)
protected void setFieldAsOctetBytes(EnumType index, byte[] value)
public void dumpWith(Asn1Dumper dumper, int indents)
dumpWith in interface Asn1DumpableCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.