DERNode

Overview

DERNode เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java.

แสดงเป็น node ASN.1 DER (Distinguished Encoding Rules) ที่ได้รับการวิเคราะห์.

หมวดนี้ให้ 22 วิธีในการทํางานกับวัตถุ DERNode ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: getChild, getChildCount, getChildren, getEncodedSize, getInteger, getOID, getString, getTag, getValue, isBitString, isConstructed, isContextTag,และ 9 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: bitString, childCount, children, constructed, encodedSize, integer,และอีก 8 คน.

Properties

NameTypeAccessDescription
tagintReadการคืน tag byte.
valuebyte[]Readกลับค่าแพร่ bytes.
childrenList<DERNode>Readการคืน node ลูก (สําหรับชนิดที่สร้าง).
constructedbooleanReadกลับ true หากนี่เป็นแบบที่สร้างขึ้น.
childCountintReadกลับจํานวนเด็ก.
sequencebooleanReadได้รุ่นเรียง.
setbooleanReadได้รับชุด.
octetStringbooleanReadได้รหัสอ็อกเตต.
integerBigIntegerReadสกัดค่า INTEGER ออกจากตัวเลข.
oIDStringReadแปล OID เป็นสตริงจุด.
bitStringbooleanReadได้รับสาย bit.
nullbooleanReadได้ค่าว่าง.
stringStringReadสกัดค่า string (PrintableString, UTF8String, IA5String เป็นต้น).
encodedSizeintReadกลับขนาดรวมของ DER ที่เข้ารหัสในโน้ตนี้.

Methods

SignatureDescription
parse(data: byte[])DERNodeการพาราชุดไบต์ที่รหัส DER เป็นต้นเข็มขัด.
parse(data: byte[], offset: int, limit: int)DERNodeการพิจารณาเริ่มต้นที่สัดส่วน, ใช้บริโภคถึงขั้นต่ํา.
parseAll(data: byte[], offset: int, limit: int)List<DERNode>สืบสานทุกค้อนต่อเนื่องระหว่างอฟเซ็ตและขั้นต่ํา.
getTag()intการคืน tag byte.
getValue()byte[]กลับค่าแพร่ bytes.
getChildren()List<DERNode>การคืน node ลูก (สําหรับชนิดที่สร้าง).
isConstructed()booleanกลับ true หากนี่เป็นแบบที่สร้างขึ้น.
getChild(index: int)DERNodeกลับตัวเด็กที่อัตราการแสดงให้เห็น.
getChildCount()intกลับจํานวนเด็ก.
isSequence()booleanกลับ true หากเรียงตามถูกตั้งไว้.
isSet()booleanกลับ true หาก set ได้set.
isOctetString()booleanกลับ true หากการตั้ง octet string ได้.
isInteger()booleanกลับ true หากตั้งตัวเต็ม.
isOID()booleanกลับ true หาก OID ถูกตั้งค่า.
isBitString()booleanกลับ true หากขั้น bit ได้ตั้งค่า.
isNull()booleanกลับ true หากตั้ง null.
isContextTag(n: int)boolean
getInteger()BigIntegerสกัดค่า INTEGER ออกจากตัวเลข.
getOID()Stringแปล OID เป็นสตริงจุด.
getString()Stringสกัดค่า string (PrintableString, UTF8String, IA5String เป็นต้น).
getEncodedSize()intกลับขนาดรวมของ DER ที่เข้ารหัสในโน้ตนี้.
toString()String

See Also

 ภาษาไทย