public class EncryptedTimestampEncoder implements Encoder, EncoderFactory
{
public byte[] encode( Encodable encryptedTimestamp ) throws IOException
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ASN1OutputStream aos = new ASN1OutputStream( baos );
aos.writeObject( encodeTimestamp( ( EncryptedTimeStamp ) encryptedTimestamp ) );
aos.close();
return baos.toByteArray();
}