public static Signer updateDEREncodedObject ( Signer signer , ASN1Encodable tbsObj ) throws IOException { OutputStream sOut = signer . getOutputStream ( ) ; DEROutputStream dOut = new DEROutputStream ( sOut ) ; dOut . writeObject ( tbsObj ) ; sOut . close ( ) ; return signer ; }
DER encode an ASN . 1 object into the given signer and return the signer .