equal
deleted
inserted
replaced
131 * @return byte array of encoded EncAPRepPart object. |
131 * @return byte array of encoded EncAPRepPart object. |
132 * @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data. |
132 * @exception Asn1Exception if an error occurs while decoding an ASN1 encoded data. |
133 * @exception IOException if an I/O error occurs while reading encoded data. |
133 * @exception IOException if an I/O error occurs while reading encoded data. |
134 */ |
134 */ |
135 public byte[] asn1Encode() throws Asn1Exception, IOException { |
135 public byte[] asn1Encode() throws Asn1Exception, IOException { |
136 Vector<DerValue> v = new Vector<DerValue>(); |
136 Vector<DerValue> v = new Vector<>(); |
137 DerOutputStream temp = new DerOutputStream(); |
137 DerOutputStream temp = new DerOutputStream(); |
138 v.addElement(new DerValue(DerValue.createTag(DerValue.TAG_CONTEXT, |
138 v.addElement(new DerValue(DerValue.createTag(DerValue.TAG_CONTEXT, |
139 true, (byte) 0x00), ctime.asn1Encode())); |
139 true, (byte) 0x00), ctime.asn1Encode())); |
140 temp.putInteger(BigInteger.valueOf(cusec)); |
140 temp.putInteger(BigInteger.valueOf(cusec)); |
141 v.addElement(new DerValue(DerValue.createTag(DerValue.TAG_CONTEXT, |
141 v.addElement(new DerValue(DerValue.createTag(DerValue.TAG_CONTEXT, |