public static int encodeSequence ( int contentLength , ByteBuffer buf ) { int headerLength = DerUtils . encodeIdAndLength ( DerId . TagClass . UNIVERSAL , DerId . EncodingType . CONSTRUCTED , ASN1_SEQUENCE_TAG_NUM , contentLength , buf ) ; return headerLength + contentLength ; }
Encode an ASN . 1 SEQUENCE .