DerNode.DerBitString, DerNode.DerBoolean, DerNode.DerByteString, DerNode.DerExplicitlyTagged, DerNode.DerGeneralizedTime, DerNode.DerInteger, DerNode.DerNull, DerNode.DerOctetString, DerNode.DerOid, DerNode.DerPrintableString, DerNode.DerSequence, DerNode.DerStructure| Constructor and Description |
|---|
DerExplicitlyTagged(int tagNumber)
Create a DerExplicitlyTagged with the given tag number.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ByteBuffer inputBuf,
int startIdx)
Override the base decode to decode and store the inner DerNode.
|
Blob |
encode()
Override the base encode to return raw data encoding for the explicit tag
and encoded inner node.
|
DerNode |
getInnerNode()
Get the inner node that is wrapped by the explicit tag.
|
int |
getTagNumber()
Get the tag number.
|
decodeHeader, encodeHeader, getChildren, getPayload, getSequence, getSize, parse, parse, toValpublic DerExplicitlyTagged(int tagNumber)
tagNumber - The explicit tag number from 0x00 to 0x1f.public Blob encode()
protected void decode(ByteBuffer inputBuf, int startIdx) throws DerDecodingException
decode in class DerNodeinputBuf - The input buffer to read from. This reads from
startIdx (regardless of the buffer's position) and does not change the
position.startIdx - The offset into the buffer.DerDecodingExceptionpublic final int getTagNumber()
public final DerNode getInnerNode()
Copyright © 2019. All rights reserved.