DERNode
Overview
DERNode is a class in Aspose.Pdf FOSS for Java.
Represents a parsed ASN.1 DER (Distinguished Encoding Rules) node.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
tag | int | Read | Returns the tag byte. |
value | byte[] | Read | Returns the raw value bytes. |
children | List<DERNode> | Read | Returns child nodes (for constructed types). |
constructed | boolean | Read | Returns true if this is a constructed type. |
childCount | int | Read | Returns the number of children. |
sequence | boolean | Read | |
set | boolean | Read | |
octetString | boolean | Read | |
integer | BigInteger | Read | Extracts an INTEGER value. |
oID | String | Read | Decodes an OID to dotted string. |
bitString | boolean | Read | |
null | boolean | Read | |
string | String | Read | Extracts a string value (PrintableString, UTF8String, IA5String, etc.). |
encodedSize | int | Read | Returns the total DER-encoded size of this node. |
Methods
| Signature | Description |
|---|---|
parse(data: byte[]) → DERNode | Parses a DER-encoded byte array into a node tree. |
parse(data: byte[], offset: int, limit: int) → DERNode | Parses starting at offset, consuming up to limit. |
parseAll(data: byte[], offset: int, limit: int) → List<DERNode> | Parses all sequential nodes between offset and limit. |
getTag() → int | Returns the tag byte. |
getValue() → byte[] | Returns the raw value bytes. |
getChildren() → List<DERNode> | Returns child nodes (for constructed types). |
isConstructed() → boolean | Returns true if this is a constructed type. |
getChild(index: int) → DERNode | Returns the child at the given index. |
getChildCount() → int | Returns the number of children. |
isSequence() → boolean | |
isSet() → boolean | |
isOctetString() → boolean | |
isInteger() → boolean | |
isOID() → boolean | |
isBitString() → boolean | |
isNull() → boolean | |
isContextTag(n: int) → boolean | |
getInteger() → BigInteger | Extracts an INTEGER value. |
getOID() → String | Decodes an OID to dotted string. |
getString() → String | Extracts a string value (PrintableString, UTF8String, IA5String, etc.). |
getEncodedSize() → int | Returns the total DER-encoded size of this node. |
toString() → String |