public class Asn1Decoder extends Object implements ITLVBerDecoderMBean
| Constructor and Description |
|---|
Asn1Decoder()
A public constructor of an Asn1 Decoder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allowIndefiniteLength()
Allow indefinite length.
|
void |
decode(ByteBuffer stream,
IAsn1Container container)
The decoder main function.
|
void |
disallowIndefiniteLength()
Disallow indefinite length.
|
int |
getMaxLengthLength()
Get the length's Length.
|
int |
getMaxTagLength()
Get the maximum Tag's length
|
boolean |
isIndefiniteLengthAllowed()
Tells if indefinite length form could be used for Length
|
void |
setMaxLengthLength(int maxLengthLength)
Set the maximul length for a Length
|
void |
setMaxTagLength(int maxTagLength)
Set the maximum Tag length
|
public void decode(ByteBuffer stream, IAsn1Container container) throws DecoderException
stream - The ByteBuffer containing the PDU to decodecontainer - The container that store the state, the result
and other elements.DecoderException - Thrown if anything went wrong!public int getMaxLengthLength()
getMaxLengthLength in interface ITLVBerDecoderMBeanpublic int getMaxTagLength()
getMaxTagLength in interface ITLVBerDecoderMBeanpublic void disallowIndefiniteLength()
disallowIndefiniteLength in interface ITLVBerDecoderMBeanpublic void allowIndefiniteLength()
allowIndefiniteLength in interface ITLVBerDecoderMBeanpublic boolean isIndefiniteLengthAllowed()
isIndefiniteLengthAllowed in interface ITLVBerDecoderMBeantrue if the current decoder support
indefinite lengthpublic void setMaxLengthLength(int maxLengthLength)
throws DecoderException
setMaxLengthLength in interface ITLVBerDecoderMBeanmaxLengthLength - The lengthLength to set.DecoderException - Thrown if the indefinite length is
allowed or if the length's Length is above 126 bytespublic void setMaxTagLength(int maxTagLength)
setMaxTagLength in interface ITLVBerDecoderMBeanmaxTagLength - The tagLength to set.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.